Skip to content

Commit 4d1ed57

Browse files
authored
Document the correct default value for HTTP/2 max concurrent streams (#82)
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
1 parent a5e34eb commit 4d1ed57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/conn/auto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ impl<E> Http2Builder<'_, E> {
597597
/// Sets the [`SETTINGS_MAX_CONCURRENT_STREAMS`][spec] option for HTTP2
598598
/// connections.
599599
///
600-
/// Default is no limit (`std::u32::MAX`). Passing `None` will do nothing.
600+
/// Default is 200. Passing `None` will remove any limit.
601601
///
602602
/// [spec]: https://http2.github.io/http2-spec/#SETTINGS_MAX_CONCURRENT_STREAMS
603603
pub fn max_concurrent_streams(&mut self, max: impl Into<Option<u32>>) -> &mut Self {

0 commit comments

Comments
 (0)