Skip to content

Commit

Permalink
Address platform-specific behavior in TcpStream::shutdown
Browse files Browse the repository at this point in the history
Fixes #25164
  • Loading branch information
steveklabnik committed Apr 26, 2017
1 parent 15ce540 commit 29e6656
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libstd/net/tcp.rs
Expand Up @@ -177,6 +177,13 @@ impl TcpStream {
///
/// [`Shutdown`]: ../../std/net/enum.Shutdown.html
///
/// # Platform-specific behavior
///
/// Calling this function multiple times may result in different behavior,
/// depending on the operating system. On Linux, the second call will
/// return `Ok(())`, but on macOS, it will return `ErrorKind::NotConnected`.
/// This may change in the future.
///
/// # Examples
///
/// ```no_run
Expand Down

0 comments on commit 29e6656

Please sign in to comment.