Repository navigation
Auto-port 4.1: Http2ConnectionHandler: report at most one stream error for a CompositeStreamException - #17595
Merged
Merged
Conversation
…teStreamException (#17470) Motivation: RFC 9113, Section 5.4 states that implementations SHOULD report at most one stream and one connection error as a result of processing a single condition, even if multiple errors are discovered. When DefaultHttp2LocalFlowController accumulates per-stream failures (e.g. while applying a new SETTINGS initial window size) into a single CompositeStreamException, Http2ConnectionHandler.onError iterated all contained StreamExceptions and wrote an RST_STREAM for each one, exceeding the recommended limit of one stream error per result. Modifications: - Http2ConnectionHandler.onError only reports the first StreamException contained in a CompositeStreamException for a specific stream instead of iterating and reporting every one of them. - Add unit tests Result: Only one RST_STREAM is written per CompositeStreamException, in line with the RFC 9113 recommendation. (cherry picked from commit 9676719)
✅ All tests passed ✅🏷️ Commit: 18b1b6b Learn more about TestLens at testlens.app/docs. |
lltopk
pushed a commit
to lltopk/netty
that referenced
this pull request
Oct 24, 2026
…r for a CompositeStreamException (netty#17595) Auto-port of netty#17470 to 4.1 Cherry-picked commit: 9676719 --- Motivation: RFC 9113, Section 5.4 states that implementations SHOULD report at most one stream and one connection error as a result of processing a single condition, even if multiple errors are discovered. When DefaultHttp2LocalFlowController accumulates per-stream failures (e.g. while applying a new SETTINGS initial window size) into a single CompositeStreamException, Http2ConnectionHandler.onError iterated all contained StreamExceptions and wrote an RST_STREAM for each one, exceeding the recommended limit of one stream error per result. Modifications: - Http2ConnectionHandler.onError only reports the first StreamException contained in a CompositeStreamException instead of iterating and reporting every one of them. - Add unit tests Result: Only one RST_STREAM is written per CompositeStreamException, in line with the RFC 9113 recommendation. Co-authored-by: Norman Maurer <[email protected]>
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.
Auto-port of #17470 to 4.1
Cherry-picked commit: 9676719
Motivation:
RFC 9113, Section 5.4 states that implementations SHOULD report at
most one stream and one connection error as a result of processing a
single condition, even if multiple errors are discovered. When
DefaultHttp2LocalFlowController accumulates per-stream failures (e.g.
while applying a new SETTINGS initial window size) into a single
CompositeStreamException, Http2ConnectionHandler.onError iterated all
contained StreamExceptions and wrote an RST_STREAM for each one,
exceeding the recommended limit of one stream error per result.
Modifications:
contained in a CompositeStreamException instead of iterating and
reporting every one of them.
Result:
Only one RST_STREAM is written per CompositeStreamException, in line
with the RFC 9113 recommendation.