Skip to content

<TcpStream as Write>::poll_close does nothing #599

Closed
@twittner

Description

@twittner

It seems that <TcpStream as Write>::poll_close calls <&TcpStream as Write>::poll_close which is a no-op. Would it not be more appropriate to shutdown the write direction of the socket, i.e. call TcpStream::shutdown with std::net::Shutdown::Write? Otherwise two processes that wait on each others EOF will wait forever.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions