Provide a way to limit HTTP/2 initial max concurrent streams by a client
See original GitHub issueA client can make more streams than the server allows and send them before it gets the HTTP/2 settings frame from the server. We need a way to limit the number:
ClientFactory.builder()
.http2InitialMaxConcurrentStreams()
/* .http2MaxConcurrentStreams() Will be added when server push is implemented */
...
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (8 by maintainers)
Top Results From Across the Web
HTTP2: Create additional connections when maximum active ...
The limit exists to prevent a caller from using up resources on the server by starting an unbounded number of streams on one...
Read more >Using HTTP2 how can I limit the number of concurrent requests?
The client can limit the number of concurrently pushed streams; adjust the initial flow control window to control how much data is pushed...
Read more >[net] http2: limit client initial MAX_CONCURRENT_STREAMS
After a `SETTINGS` frame has been received use the servers `MAX_CONCURRENT_STREAMS`, if present, otherwise use `1000` as a reasonable value. For ...
Read more >http2.client.max_concurrent_streams() - TechDocs
This property determines the maximum number of concurrent HTTP/2 streams that the client may initiate on the current client connection.
Read more >Define thresholds on the number of HTTP/2 Settings ...
The HTTP/2 protocol doesn't define any practical limit on the number of settings parameters included in a single settings frame (max allowed is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Not so much? 🤣 I thought there’s a chance that a user wants to set the properties such as
maxFrameSize,initialWindowSizeand etc before the client gets the settings frame, but probably that’s overkill. So specifyinghttp2InitialMaxConcurrentStreamswould be enough I guess.Speaking of max concurrent streams, I think the method name for setting the max current streams server-side can be mistakenly considered. (
Server.builder().http2MaxStreamsPerConnection) I hope we can change it tohttp2MaxConcurrentStreamswhen we reach 2.0.