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
Calling
tcp.shutdown(how)multiple times will return different values, depending on the OS. On Linux, it returnsOk(()), on OS X, it returnsErrorKind::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