Skip to content

Normalize calling tcp.shutdown multiple times across OSes #25164

Closed
@seanmonstar

Description

@seanmonstar
Contributor

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

Activity

steveklabnik

steveklabnik commented on May 7, 2015

@steveklabnik
Member

Tagging as libs until the decision is made that this is different across platforms.

nagisa

nagisa commented on May 9, 2015

@nagisa
Member

I don’t think we can do anything sensible here.

steveklabnik

steveklabnik commented on Nov 29, 2016

@steveklabnik
Member

Triage: re-tagging as docs to make mention of this

added
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools
on Mar 10, 2017
added a commit that references this issue on Apr 26, 2017
29e6656
added 2 commits that reference this issue on Apr 26, 2017

Rollup merge of rust-lang#41499 - steveklabnik:gh25164, r=alexcrichton

db07dd1

Rollup merge of rust-lang#41499 - steveklabnik:gh25164, r=alexcrichton

88bdbc7
added 2 commits that reference this issue on Apr 26, 2017

Rollup merge of rust-lang#41499 - steveklabnik:gh25164, r=alexcrichton

a6e6df8

Rollup merge of rust-lang#41499 - steveklabnik:gh25164, r=alexcrichton

84f6e01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @steveklabnik@seanmonstar@alexcrichton@nagisa

        Issue actions

          Normalize calling tcp.shutdown multiple times across OSes · Issue #25164 · rust-lang/rust