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

Issue #2796 - Max local stream count exceeded when request fails. #2965

Merged
merged 6 commits into from
Nov 1, 2018

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Oct 9, 2018

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]

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]>
@sbordet sbordet requested a review from gregw October 9, 2018 13:59
Copy link
Contributor

@gregw gregw left a 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]>
@sbordet
Copy link
Contributor Author

sbordet commented Oct 11, 2018

@gregw I have updated the code as discussed, and ran a bunch of load tests, seems good to me.
Can you please re-review?

Copy link
Contributor

@gregw gregw left a 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

@@ -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.
Copy link
Contributor

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]>
@joakime joakime added this to the 9.4.x milestone Nov 1, 2018
@sbordet sbordet merged commit 11abe53 into jetty-9.4.x Nov 1, 2018
@sbordet sbordet deleted the jetty-9.4.x-2796-http2_max_concurrent_streams branch November 1, 2018 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants