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 — Arm force-close timeout when an inbound CLOSE frame is echoed by normanmaurer · Pull Request #17574 · netty/netty Arm force-close timeout when an inbound CLOSE frame is echoed #17574New issueHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails. Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
34b6a4b
Arm force-close timeout when an inbound CLOSE frame is echoed
normanmaurer 308afa0
Close the channel directly from the force-close timeout
normanmaurer c4eb1c0
Cascade closeSent() instead of overwriting an in-flight promise
normanmaurer 1b1e5fd
Merge branch '4.2' into ws-close-1b430108
normanmaurer 7c04c3b
Use 10 seconds as default
normanmaurer dd650fb
Merge branch '4.2' into ws-close-1b430108
normanmaurer File filterConversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page. Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page. Diff viewDiff view
Next
Arm force-close timeout when an inbound CLOSE frame is echoed
Motivation: WebSocketServerProtocolHandler.decode() writes the CLOSE echo directly via WebSocketServerHandshaker.close(), bypassing this handler's own write()/close() overrides where forceCloseTimeoutMillis was armed. If the peer stops draining its socket, the echo write never completes and the channel, its file descriptor and buffers are pinned forever. Modifications: Arm the timeout explicitly after the echo write is issued, and also from a new flush() override so a bare write(CloseWebSocketFrame) not followed by close() gets the same protection. The timeout is applied after the write/flush attempt, not before, so a write that completes synchronously never races the deadline. Result: Awalys close the channel even when the remote peer stops reading
Uh oh!
There was an error while loading. Please reload this page.
commit 34b6a4b76d7ef90b69efe65ffe044f71b9b87dc6
There are no files selected for viewing
Oops, something went wrong.
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.
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |