Sets the linger setting of this socket.
impl Socket {
fn set_linger(&self, seconds: Option<u32>) -> Result<(), Errno>
}| Name | Description |
|---|---|
| seconds | For how long this socket will linger in the foreground, if at all. |
If this is set to anything but None, then closing the socket or calling :shut: will block for up to seconds seconds, waiting for all pending outgoing messages to be sent. Afterwards the socket lingers in the background.
socket(7) and SO_LINGER therein