Skip to main content

DEFAULT_NOTSENT_LOWAT

Constant DEFAULT_NOTSENT_LOWAT 

pub const DEFAULT_NOTSENT_LOWAT: u32 = _ /* 131_072u32 */;
Available on crate feature net and (Android or Apple or Linux) only.
Expand description

TCP_NOTSENT_LOWAT that SocketOptions::default_tcp, the TCP listener and the default TCP connector set.

A relay to a slow reader then keeps this much unsent data in the kernel instead of up to the whole send buffer, yet enough to keep a fast path busy when a loaded runtime is late to write again.