Constant DEFAULT_MAX_SESSIONS
pub const DEFAULT_MAX_SESSIONS: usize = 64;Expand description
Default ceiling on concurrently established WSS sessions.
See WssLimits::max_sessions.
Sized as an explicit host-memory policy, not a connection-count guess: the
parser envelope (rpc_ws_config) is 32 MiB per session, so this default
caps the aggregate parser reservation at 2 GiB - defensible on a small
daemon host - while 64 concurrent remote sessions is far beyond a personal
daemon’s working set. Operators with bigger hosts and fleets raise it
consciously, envelope arithmetic in hand.