Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #6603 - HTTP/2 max local stream count exceeded (#6639) #6682

Merged

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Aug 30, 2021

Made MAX_CONCURRENT_STREAMS setting work on a per-connection basis.
Updated Pool javadocs.

Signed-off-by: Simone Bordet simone.bordet@gmail.com
Co-authored-by: Greg Wilkins gregw@webtide.com
(cherry picked from commit 525fcb3)

Made MAX_CONCURRENT_STREAMS setting work on a per-connection basis.
Updated Pool javadocs.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
Co-authored-by: Greg Wilkins <gregw@webtide.com>
(cherry picked from commit 525fcb3)
@sbordet sbordet requested review from lorban and gregw August 30, 2021 14:27
@sbordet
Copy link
Contributor Author

sbordet commented Aug 30, 2021

Forward port of #6639 to Jetty 10.

Note that removing usage count is tracked by #6669, while splitting of the Pool is tracked by #6683.

Signed-off-by: Greg Wilkins <gregw@webtide.com>
@gregw
Copy link
Contributor

gregw commented Aug 30, 2021

@sbordet I fixed the broken test that was due to a change in the dump format

lorban
lorban previously approved these changes Aug 31, 2021
Copy link
Contributor

@lorban lorban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor nit, doesn't have much impact.

@@ -834,6 +837,9 @@ protected IStream createRemoteStream(int streamId, MetaData.Request request)
int maxCount = getMaxRemoteStreams();
if (maxCount >= 0 && remoteCount - remoteClosing >= maxCount)
{
IllegalStateException failure = new IllegalStateException("Max remote stream count " + maxCount + " exceeded: " + remoteCount + "+" + remoteClosing);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exception is only used in the debug log. We could save a few cycles when this error condition occurs by only creating it if debug is enabled.

@sbordet sbordet merged commit e2690cc into jetty-10.0.x Sep 1, 2021
@sbordet sbordet deleted the jetty-10.0.x-6603-max-concurrent-streams-exceeded branch September 1, 2021 08:27
@sbordet sbordet added this to In progress in Jetty 10.0.7/11.0.7 FROZEN via automation Sep 1, 2021
@sbordet sbordet moved this from In progress to Done in Jetty 10.0.7/11.0.7 FROZEN Sep 1, 2021
@sbordet sbordet linked an issue Sep 1, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

HTTP/2 max local stream count exceeded
3 participants