pub const DEFAULT_MAX_CONCURRENT_STREAMS: usize = 1024;Expand description
Default ceiling on concurrent streaming event queues.
Every streaming request eagerly allocates channels and spawns background
tasks, so an unlimited default let an unauthenticated caller grow server
memory and task count without bound. 1024 concurrent streams is far above
typical single-instance loads while still bounding resource use; raise it
via RequestHandlerBuilder::with_max_concurrent_streams (up to
usize::MAX to effectively disable the ceiling).