Skip to content

Conversation

magurotuna
Copy link
Contributor

This sets the default value of initial_max_send_streams to 100, which previously was usize::MAX as defined in h2 crate.

This default value can be considered reasonable given that widely-used HTTP/2 client implementations adopt this value such as nghttp2 and Go's x/net/http2, and the HTTP/2 spec recommends that HTTP/2 servers should set MAX_CONCURRENT_STREAM they advertise to clients to at least 100. More details can be found at hyperium/h2#731.

Continuation of #3524

@seanmonstar
Copy link
Member

We'll merge this after releasing v1.2.

@seanmonstar seanmonstar merged commit 2d1bd70 into hyperium:master Feb 28, 2024
@magurotuna magurotuna deleted the initial_max_send_streams_default_value branch February 29, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants