question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a way to limit HTTP/2 initial max concurrent streams by a client

See original GitHub issue

A 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:open
  • Created 2 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
minwooxcommented, Apr 13, 2021

What would a user specify in Http2Settings besides the max number of concurrent streams?

Not so much? 🤣 I thought there’s a chance that a user wants to set the properties such as maxFrameSize, initialWindowSize and etc before the client gets the settings frame, but probably that’s overkill. So specifying http2InitialMaxConcurrentStreams would be enough I guess.

1reaction
minwooxcommented, Apr 12, 2021

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 to http2MaxConcurrentStreams when we reach 2.0.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found