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: HTTP/2: Prevent reentrant flush on writability change by netty-project-bot · Pull Request #17268 · netty/netty Conversation
Contributor
Auto-port of #17266 to 4.1 Motivation: An HTTP/2 connection can enter a livelock when a flush synchronously triggers a channel writability change. Modification: Track when Add a regression test that simulates a synchronous writability change during Result: Fixes #17256.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: An HTTP/2 connection can enter a livelock when a flush synchronously triggers a channel writability change. `channelWritabilityChanged` then re-enters `Http2ConnectionHandler.flush()` while the original flush is still in progress, causing the event-loop thread to spin indefinitely. Modification: Track when `Http2ConnectionHandler` is performing a flush and prevent `channelWritabilityChanged` from initiating a nested flush during that operation. Add a regression test that simulates a synchronous writability change during `ChannelHandlerContext.flush()` and verifies that the flush is not re-entered. Result: Fixes #17256. Signed-off-by: Arnab Nandy <[email protected]> (cherry picked from commit 1ec9af2)
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅🏷️ Commit: 9710845 Learn more about TestLens at testlens.app. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…etty#17268) Auto-port of netty#17266 to 4.1 Cherry-picked commit: 1ec9af2 --- Motivation: An HTTP/2 connection can enter a livelock when a flush synchronously triggers a channel writability change. `channelWritabilityChanged` then re-enters `Http2ConnectionHandler.flush()` while the original flush is still in progress, causing the event-loop thread to spin indefinitely. Modification: Track when `Http2ConnectionHandler` is performing a flush and prevent `channelWritabilityChanged` from initiating a nested flush during that operation. Add a regression test that simulates a synchronous writability change during `ChannelHandlerContext.flush()` and verifies that the flush is not re-entered. Result: Fixes netty#17256. Signed-off-by: Arnab Nandy <[email protected]> Co-authored-by: Arnab Nandy <[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.