GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — Reject new HTTP/2 streams after receiving GOAWAY by snoopuppy582 · Pull Request #17458 · netty/netty ConversationMotivation: Receiving GOAWAY with a high Last-Stream-ID still allows new local streams to be created. Buffered requests below that ID also remain queued even though they have not been sent. This includes the maximum Last-Stream-ID used to begin graceful shutdown. Modification: Reject new local streams and push reservations after receiving GOAWAY. Fail all buffered writes and release their data, removing each pending stream before notifying its promises. Prevent callbacks from resuming the queue after GOAWAY. The regression tests cover both endpoints, both HEADERS overloads, queued DATA and callbacks that create capacity during cancellation. Existing streams, previously reserved push streams and remote streams already in flight remain usable. Result: Fixes #17441. Validation on Windows with Temurin 17.0.19 and the Maven 3.9.11 wrapper:
The implementation, regression tests and this description were developed with Codex.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: A GOAWAY with a high Last-Stream-ID still permits new local streams. Buffered requests below that ID also remain queued even though they have not been sent and can no longer be opened on the connection. Modifications: Reject new local streams and push reservations after receiving GOAWAY. Fail all buffered writes and release their data, removing each pending stream before notifying its promises. Prevent reentrant callbacks from resuming pending streams after GOAWAY. Add regression coverage for both endpoints, HEADERS overloads, buffered data and reentrant callbacks, while preserving existing streams and remote streams already in flight. Result: Fixes netty#17441.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Author
All reactions
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.
normanmaurer
requested changes
Uh oh!
There was an error while loading. Please reload this page. - Move the GOAWAY-received check in checkNewStreamAllowed() after the stream-ID validity and closed-stream checks, so more specific errors (Http2NoMoreStreamIdsException, "behind next expected stream") are no longer masked by a generic REFUSED_STREAM once any GOAWAY has been received. - Extract the duplicated pending-stream drain/close loop in StreamBufferingEncoder into a shared static failAllPendingStreams() helper, used by both close() and cancelGoAwayStreams(), and avoid allocating the failure exception when there are no pending streams.
normanmaurer
approved these changes
bryce-anderson
approved these changes
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. - Move the GOAWAY-received check below the nextStreamIdToCreate <= 0 check in checkNewStreamAllowed(), since the stream-ID-exhaustion error is more specific. - Use Integer.MAX_VALUE as the GOAWAY last-stream-id in receivingGoAwayFailsBufferedStreams, since none of the buffered streams were sent and will fail regardless of the specific value.
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅🏷️ Commit: c64e292 Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
New local streams can still be created after receiving GOAWAY
There was an error while loading. Please reload this page.