-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fixes #6603 - HTTP/2 max local stream count exceeded (#6639) #6682
Conversation
Signed-off-by: Greg Wilkins <gregw@webtide.com>
@sbordet I fixed the broken test that was due to a change in the dump format |
There was a problem hiding this 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); |
There was a problem hiding this comment.
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.
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)