Skip to main content

Module constants

Module constants 

Source

Constants§

BACKLOG_SIZE
Server
CONTROL_CHANNEL_SIZE
DATA_BUFFER_SIZE
DATA_CHANNEL_SIZE
DEFAULT_CLIENT_DATA_CHANNEL_CAPACITY
DEFAULT_CLIENT_RETRY_INTERVAL_SECS
Client
DEFAULT_CONNECT_TIMEOUT_SECS
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.
DEFAULT_HEARTBEAT_INTERVAL_SECS
Application-layer heartbeat interval in secs
DEFAULT_HEARTBEAT_TIMEOUT_SECS
DEFAULT_KEEPALIVE_INTERVAL
DEFAULT_KEEPALIVE_SECS
DEFAULT_NODELAY
TCP
HANDSHAKE_TIMEOUT
LISTENERS_PER_FD
MESSAGE_TIMEOUT_SECS
UDP_BUFFER_SIZE
UDP MTU. Currently far larger than necessary
UDP_SENDQ_SIZE
UDP_TIMEOUT
WEBSOCKET_READ_BUFFER_SIZE
WebSocket read buffer chunk size (tungstenite read_buffer_size).

Functions§

listen_backoff
run_control_chan_backoff