pub const DEFAULT_WS_IDLE_TIMEOUT: Duration;Available on crate feature
websocket only.Expand description
A reasonable idle bound for WebSocketDispatcher::with_idle_timeout:
how long an established connection may carry no traffic in either direction
before it is closed.
Matches DEFAULT_IDLE_TIMEOUT for the
HTTP bindings, and like it counts traffic in both directions so a
subscription pushing events out is not mistaken for a dead connection.
The default since 0.16.0 (audit D-20, ADR 0042); until then it was off
unless asked for. It closes only a peer that does not answer the Ping sent
at half the budget — see WebSocketDispatcher::with_idle_timeout.