Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: allow to set linger on
TcpSocket
(#4324)
For now, this is only allowed on TcpStream. This is a problem when one want to disable lingering (i.e. set it to Duration(0, 0)). Without being able to set it prior to the connect call, if the connect future is dropped it would leave sockets in a TIME_WAIT state. Co-authored-by: Fabien Gaud <fgaud@amazon.com>
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters