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
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
steveklabnik commentedon May 7, 2015
Tagging as libs until the decision is made that this is different across platforms.
nagisa commentedon May 9, 2015
I don’t think we can do anything sensible here.
steveklabnik commentedon Nov 29, 2016
Triage: re-tagging as docs to make mention of this
Address platform-specific behavior in TcpStream::shutdown
Rollup merge of rust-lang#41499 - steveklabnik:gh25164, r=alexcrichton
Rollup merge of rust-lang#41499 - steveklabnik:gh25164, r=alexcrichton
Rollup merge of rust-lang#41499 - steveklabnik:gh25164, r=alexcrichton
Rollup merge of rust-lang#41499 - steveklabnik:gh25164, r=alexcrichton