Repository navigation
Do not count a reserved stream already locally reset as opened - #1545
Open
arturobernalg wants to merge 1 commit into
Open
arturobernalg wants to merge 1 commit into
arturobernalg wants to merge 1 commit into
Conversation
Member
|
@arturobernalg I have an impression that we are now bug fixing our bug fixes and the whole thing got terribly rushed. I hope you know what you are doing. |
ok2c
approved these changes
Nov 30, 2026
A reserved stream that is locally reset before its response arrives (its promise refused, or for any other reason) stays reserved. Activating it for late response HEADERS -- an ordinary network race, not a protocol violation -- counted it as opened with no matching close ever coming, permanently inflating the connection's remote stream count. Mirrors the existing isLocalReset() guard already used for DATA on a refused stream; the same guard also covers trailers arriving on a stream refused during connection shutdown.
arturobernalg
force-pushed
the
h2-fix-reserved-stream-remotecount-leak
branch
from
December 2, 2026 16:55
99a52fa to
ae71dae
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A reserved stream that is locally reset before its response arrives (its promise refused, or for any other reason) stays reserved. Activating it for late response HEADERS -- an ordinary network race, not a protocol violation -- counted it as opened with no matching close ever coming, permanently inflating the connection's remote stream count.
Mirrors the existing isLocalReset() guard already used for DATA on a refused stream; the same guard also covers trailers arriving on a stream refused during connection shutdown.