Repository navigation
Purge closed HTTP/2 streams regardless of connection output window - #1542
Merged
arturobernalg merged 1 commit intoDec 2, 2026
Merged
arturobernalg merged 1 commit into
arturobernalg merged 1 commit into
Conversation
Member
|
@arturobernalg I do not think this is a good idea, especially in a bug release. And it, again, this change adds an extra scan of all streams If you want this logic executed, please put it here |
Closed streams were removed from the stream table only while producing output, which is skipped when the connection output window is exhausted or the peer SETTINGS have not been acknowledged. A peer withholding connection-level WINDOW_UPDATE could thus keep completed streams in the table indefinitely. Drop them in the existing resetIfCancelled loop for that case instead of adding a separate pass over all streams.
arturobernalg
force-pushed
the
h2-purge-closed-streams-despite-window
branch
from
November 29, 2026 12:35
c3848ba to
29f9734
Compare
Member
Author
|
Fixed, pushed. Moved the drop into the existing resetIfCancelled loop, no separate pass. |
ok2c
approved these changes
Nov 29, 2026
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.
Closed streams were removed from the stream table only while producing output, which is skipped when the connection output window is exhausted or the peer SETTINGS have not been acknowledged. A peer withholding connection-level WINDOW_UPDATE could thus keep completed streams in the table indefinitely.
Stream removal is now a separate pass in onOutput that runs right after output production, regardless of flow control state.