Skip to main content

DEFAULT_MAX_CONNECTIONS

Constant DEFAULT_MAX_CONNECTIONS 

Source
pub const DEFAULT_MAX_CONNECTIONS: u32 = 256;
Expand description

Default cap on simultaneously open QUIC connections.

Sized against the rest of the budget rather than picked at random: what the startup check compares against RLIMIT_NOFILE is max_connections * max_targets_per_conn plus 64 descriptors of headroom, which is 256 * 256 + 64 = 65600 here, against the LimitNOFILE=131072 the shipped systemd unit sets. Raising either limit past that point means raising LimitNOFILE with it.