Repository navigation
Auto-port 5.0: Http2ConnectionHandler: report at most one stream error for a CompositeStreamException - #17596
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)
🚨 TestLens detected 1 failed test 🚨Here is what you can do:
Test SummaryBuild PR / windows-x86_64-java25-boringssl > Netty/Transport
🏷️ Commit: 33aaca5 Test FailuresNioEventLoopTest > testTaskRemovalOnShutdownThrowsNoUnsupportedOperationException() (Netty/Transport in Build PR / windows-x86_64-java25-boringssl)
Rerun ControlsSelect tests to mute in this pull request:
Reuse successful test results:
Click the checkbox to trigger a rerun:
Learn more about TestLens at testlens.app/docs. |
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 5.0
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.