Feature gate: #![feature(tcp_linger)]
This is a tracking issue for the TcpStream::linger and TcpStream::set_linger methods that get/set the SO_LINGER option on the socket. Behavior works as expected on both Unix and Windows.
Public API
impl TcpStream {
pub fn set_linger(&self, linger: Option<Duration>) -> io::Result<()>;
pub fn linger(&self) -> io::Result<Option<Duration>>;
}
Steps / History
Unresolved Questions
- Should enabling lingering and setting the duration be split out into two operations?
Feature gate:
#![feature(tcp_linger)]This is a tracking issue for the
TcpStream::lingerandTcpStream::set_lingermethods that get/set theSO_LINGERoption on the socket. Behavior works as expected on both Unix and Windows.Public API
Steps / History
TcpStream::set_lingerandTcpStream::linger#88495Unresolved Questions