Skip to main content

DEFAULT_WS_WRITE_TIMEOUT

Constant DEFAULT_WS_WRITE_TIMEOUT 

Source
pub const DEFAULT_WS_WRITE_TIMEOUT: Duration;
Available on crate feature websocket only.
Expand description

How long one frame may take to be written before the connection is closed.

After this the peer is taken to have stopped reading (audit D-07). A peer that stops reading fills the socket’s send buffer; a write then waits for the peer for ever, holding the connection’s sink, and so did every request task and the read loop itself that wanted it next.