Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: allow to set linger on TcpSocket #4324

Merged
merged 1 commit into from Dec 16, 2021
Merged

Commits on Dec 16, 2021

  1. net: allow to set linger on TcpSocket

    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.
    Fabien Gaud committed Dec 16, 2021
    Copy the full SHA
    1d1e3dc View commit details
    Browse the repository at this point in the history