-
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
Issue #2796 - Max local stream count exceeded when request fails. #2965
Issue #2796 - Max local stream count exceeded when request fails. #2965
Conversation
Reviewed other possible places where max local stream count may overflow. Fixed handling of HTTP/2 stream idle timeouts. Signed-off-by: Simone Bordet <[email protected]>
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.
What is here looks OK, but it's not fixing the real problem right????
Bound release of the channel to stream close event. Signed-off-by: Simone Bordet <[email protected]>
@gregw I have updated the code as discussed, and ran a bunch of load tests, seems good to me. |
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.
LGTM other than the quibbles
jetty-http2/http2-common/src/main/java/org/eclipse/jetty/http2/HTTP2Session.java
Show resolved
Hide resolved
@@ -87,23 +92,31 @@ protected HttpChannelOverHTTP2 newHttpChannel() | |||
|
|||
protected void release(HttpChannelOverHTTP2 channel) | |||
{ | |||
if (LOG.isDebugEnabled()) | |||
LOG.debug("Released {}", channel); | |||
// Only non-push channels are released. |
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 comment is now wrong.
s/released/recycled/
Updates after review. Signed-off-by: Simone Bordet <[email protected]>
Restored smaller maxContentLength to avoid that the test takes too much time and fails. Signed-off-by: Simone Bordet <[email protected]>
Issue #2796.
Reviewed other possible places where max local stream count may
overflow.
Fixed handling of HTTP/2 stream idle timeouts.
Signed-off-by: Simone Bordet [email protected]