Skip to content

Normalize calling tcp.shutdown multiple times across OSes #25164

Closed
@seanmonstar

Description

@seanmonstar

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

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions