Closed
Description
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.
Activity
yoshuawuyts commentedon Dec 12, 2019
@twittner what you're suggesting seems reasonable; if you have the time, a patch for this would be greatly appreciated!
TcpStream: Shutdown write direction in poll_close.