From 483d28205e9421cbb2839d2c92700f472f1b7d97 Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Thu, 21 Dec 2023 22:22:33 +0530 Subject: [PATCH] Document the correct default value Load testing on our web application caused issues and it looks like it is because of this. The default value is 200 as you can see from the default instantiation here: https://github.com/hyperium/hyper/blob/1d4ff3597b8e76818c8553dbfa4234cf4208c958/src/proto/h2/server.rs#L66 --- src/server/conn/auto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/conn/auto.rs b/src/server/conn/auto.rs index ccd315d..36610a1 100644 --- a/src/server/conn/auto.rs +++ b/src/server/conn/auto.rs @@ -597,7 +597,7 @@ impl Http2Builder<'_, E> { /// Sets the [`SETTINGS_MAX_CONCURRENT_STREAMS`][spec] option for HTTP2 /// connections. /// - /// Default is no limit (`std::u32::MAX`). Passing `None` will do nothing. + /// Default is 200. Passing `None` will remove any limit. /// /// [spec]: https://http2.github.io/http2-spec/#SETTINGS_MAX_CONCURRENT_STREAMS pub fn max_concurrent_streams(&mut self, max: impl Into>) -> &mut Self {