Closed
Description
Calling tcp.shutdown(how)
multiple times will return different values, depending on the OS. On Linux, it returns Ok(())
, on OS X, it returns ErrorKind::NotConnected
.
Perhaps this behavior could be made to be the same across platforms. If not, at the least, the docs should call it out.
Noticed from hyperium/hyper#508
/cc @aturon @alexcrichton