GeezerVison is showing github.com — Http2: Reserve promised stream for PUSH_PROMISE after local RST_STREAM by normanmaurer · Pull Request #17471 · netty/netty
Conversation
Motivation:
RFC 9113, Section 5.1 requires that an endpoint which already sent
RST_STREAM still minimally process in-flight frames on that stream,
including causing a PUSH_PROMISE's promised stream to become
"reserved (remote)" even though the frame itself is discarded.
Modification:
- DefaultHttp2ConnectionDecoder.onPushPromiseRead returned early via
shouldIgnoreHeadersOrDataFrame() before ever calling
reservePushStream(), so the promised stream was silently never
created when the parent stream had isResetSent() set. This was changed to actual reserve it before discarding it
- Added unit tests
Result:
Follow the RFC more closely
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Motivation:
RFC 9113, Section 5.1 requires that an endpoint which already sent
RST_STREAM still minimally process in-flight frames on that stream,
including causing a PUSH_PROMISE's promised stream to become
"reserved (remote)" even though the frame itself is discarded.
Modification:
- DefaultHttp2ConnectionDecoder.onPushPromiseRead returned early via
shouldIgnoreHeadersOrDataFrame() before ever calling
reservePushStream(), so the promised stream was silently never
created when the parent stream had isResetSent() set. This was changed to actual reserve it before discarding it
- Added unit tests
Result:
Follow the RFC more closely
normanmaurer
changed the title
rst promise 10479e6c
Http2: Reserve promised stream for PUSH_PROMISE after local RST_STREAM
Sep 14, 2026
🚨 TestLens detected 2 failed tests 🚨
Here is what you can do:
- Inspect the test failures carefully.
- If you are convinced that some of the tests are flaky, you can mute them below.
- Finally, trigger a rerun by checking the rerun checkbox.
Failed Jobs without Test Failures
❌ Verify native library loading on musl / build-jars-x86_64
❌ Build PR / linux-aarch64-verify-native
Test Summary
| Test |
Runs |
Flakiness |
| Http2MultiplexCodecTest > unhandledHttp2FramesShouldBePropagated() |
❌ |
1% 🟡 |
| Test |
Runs |
Flakiness |
| OcspServerCertificateValidatorTest |
❌ |
1% 🟡 |
🏷️ Commit: 64a203c
▶️ Tests: 894614 executed
🟡 Checks: 43/52 completed
Test Failures
Http2MultiplexCodecTest > unhandledHttp2FramesShouldBePropagated() (Netty/Codec/HTTP2 in Build PR / linux-x86_64-java24 build)
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
at io.netty.handler.codec.http2.Http2TestUtil.assertEqualsAndRelease(Http2TestUtil.java:549)
at io.netty.handler.codec.http2.Http2MultiplexTest.unhandledHttp2FramesShouldBePropagated(Http2MultiplexTest.java:558)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1434)
at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2198)
at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.tryRemoveAndExec(ForkJoinPool.java:1434)
at java.base/java.util.concurrent.ForkJoinPool.helpJoin(ForkJoinPool.java:2198)
at java.base/java.util.concurrent.ForkJoinTask.awaitDone(ForkJoinTask.java:495)
at java.base/java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:662)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:507)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1394)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1970)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
| expected |
actual |
true |
false |
OcspServerCertificateValidatorTest (Netty/Handler/Ssl/Ocsp in Build PR / linux-x86_64-java26 build)
java.lang.IllegalStateException: Possible memory leak detected for resource scope 'OcspServerCertificateValidatorTest'. Please use paranoid leak detection to get more information, or set -Dio.netty.util.LeakPresenceDetector.trackCreationStack=true
at io.netty.util.LeakPresenceDetector$ResourceScope.check(LeakPresenceDetector.java:308)
at io.netty.util.LeakPresenceDetector$ResourceScope.close(LeakPresenceDetector.java:328)
at io.netty.util.test.LeakPresenceExtension.afterAll(LeakPresenceExtension.java:140)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1612)
Rerun Controls
Note Checks are currently running using the configuration below.
Select tests to mute in this pull request:
🔲 Http2MultiplexCodecTest > unhandledHttp2FramesShouldBePropagated()
🔲 OcspServerCertificateValidatorTest
Reuse successful test results:
🔲 ♻️ Only rerun the tests that failed or were muted before
Click the checkbox to trigger a rerun:
🔲 Rerun jobs
Learn more about TestLens at testlens.app/docs.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.