Skip to main content

DEFAULT_STREAM_LIMIT

Constant DEFAULT_STREAM_LIMIT 

Source
pub const DEFAULT_STREAM_LIMIT: usize = 64;
Expand description

Default concurrent-stream cap. NOTE: the Arc<Semaphore> this sizes is shared server-wide across all connections (one Arc<HandlerInner>), not per-connection — so this bounds total in-flight streams for the whole server, capping memory to MAX_FRAME_BYTES × DEFAULT_STREAM_LIMIT = 256 MiB.