Skip to main content

WRITE_BOUND

Constant WRITE_BOUND 

Source
pub(crate) const WRITE_BOUND: Duration;
Expand description

The longest one frame may take to reach the socket before its peer is judged to have stopped reading.

A write had no bound: a peer that vanished with a frame in flight leaves no ping outstanding, so the keepalive cannot see it, and TCP can take minutes to report the socket gone (#2473). The floor is the slowest frame measured - a 3.5 MB snapshot to a slow client, 31.6 s - and 60 s clears it by close to double and is the keepalive’s own dead bound, so the two mechanisms measure a dead peer on the same scale.