Skip to main content

DEFAULT_CONNECT_TIMEOUT_SECS

Constant DEFAULT_CONNECT_TIMEOUT_SECS 

Source
pub const DEFAULT_CONNECT_TIMEOUT_SECS: u64 = 30;
Expand description

Deadline for establishing a connection: TCP connect, TLS handshake and the WebSocket upgrade. None of those steps carry a protocol-level message, so MESSAGE_TIMEOUT_SECS does not cover them - without this a peer that accepts the connection and then goes silent parks the dial forever.