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 — Auto-port 4.1: Treat DATA frames on reserved HTTP/2 streams as a connection error by netty-project-bot · Pull Request #17998 · netty/netty Conversation
Contributor
Auto-port of #17868 to 4.1 Motivation: Modification:
Result: Discovered by fuzzing. 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…17868) Motivation: A DATA frame on a stream in the RESERVED_REMOTE state (on a client that received a PUSH_PROMISE) or RESERVED_LOCAL state (on a server that sent one) caused an UnsupportedOperationException from DefaultHttp2LocalFlowController. Reserved streams are not active yet, so they still use the reduced flow control state, but receiveFlowControlledFrame and consumeBytes only skipped stream-level flow control for closed streams. DefaultHttp2ConnectionDecoder applies flow control before throwing the error for the unexpected stream state, so the connection was closed with an INTERNAL_ERROR GOAWAY and the UnsupportedOperationException was passed to exceptionCaught. Even without that, the decoder would only have raised a stream error, while RFC 9113, section 5.1 requires a connection error of type PROTOCOL_ERROR for DATA frames on idle or reserved streams. Modification: - Only apply stream-level flow control in DefaultHttp2LocalFlowController for active (OPEN or HALF_CLOSED_*) streams. For other streams the bytes are consumed for the connection window right away, as for closed streams, and returning them later is ignored. - Raise a connection error of type PROTOCOL_ERROR in DefaultHttp2ConnectionDecoder for DATA frames on IDLE or RESERVED_* streams. - Add tests. Result: DATA frames on reserved streams cause a PROTOCOL_ERROR GOAWAY, and the connection flow control window stays correct. Discovered by fuzzing. --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Norman Maurer <[email protected]> (cherry picked from commit 1bf1ac3)
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅🏷️ Commit: e419900 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.
…ection error (netty#17998) Auto-port of netty#17868 to 4.1 Cherry-picked commit: 1bf1ac3 --- Motivation: A DATA frame on a stream in the RESERVED_REMOTE state (on a client that received a PUSH_PROMISE) or RESERVED_LOCAL state (on a server that sent one) caused an UnsupportedOperationException from DefaultHttp2LocalFlowController. Reserved streams are not active yet, so they still use the reduced flow control state, but receiveFlowControlledFrame and consumeBytes only skipped stream-level flow control for closed streams. DefaultHttp2ConnectionDecoder applies flow control before throwing the error for the unexpected stream state, so the connection was closed with an INTERNAL_ERROR GOAWAY and the UnsupportedOperationException was passed to exceptionCaught. Even without that, the decoder would only have raised a stream error, while RFC 9113, section 5.1 requires a connection error of type PROTOCOL_ERROR for DATA frames on idle or reserved streams. Modification: - Only apply stream-level flow control in DefaultHttp2LocalFlowController for active (OPEN or HALF_CLOSED_*) streams. For other streams the bytes are consumed for the connection window right away, as for closed streams, and returning them later is ignored. - Raise a connection error of type PROTOCOL_ERROR in DefaultHttp2ConnectionDecoder for DATA frames on IDLE or RESERVED_* streams. - Add tests. Result: DATA frames on reserved streams cause a PROTOCOL_ERROR GOAWAY, and the connection flow control window stays correct. Discovered by fuzzing. Co-authored-by: Jonas Konrad <[email protected]> Co-authored-by: Norman Maurer <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.