]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #88495 - ibraheemdev:tcp-linger, r=joshtriplett
authorMara Bos <m-ou.se@m-ou.se>
Tue, 31 Aug 2021 15:54:58 +0000 (17:54 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Aug 2021 15:54:58 +0000 (17:54 +0200)
commitc5a34d802db7e445de84728e310740cb68857d90
tree46c502947e1eaca3fbc4e7da0c06eea5f9dc344c
parent41249cad91e98229401cf1d1ee6baf5c3ca5105d
parent072e8c977a8158b4def93bdfe23ab77427399f6f
Rollup merge of #88495 - ibraheemdev:tcp-linger, r=joshtriplett

Add `TcpStream::set_linger` and `TcpStream::linger`

Adds methods for getting/setting the `SO_LINGER` option on TCP sockets. Behavior is consistent across Unix and Windows.

r? `@joshtriplett` (I noticed you've been reviewing net related PRs)