Skip to content
New issue

Have 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

ensure callback is always completed in WebSocketCoreSession #11309

Conversation

lachlan-roberts
Copy link
Contributor

If the session is already closed the callback for WebSocketCoreSession.processHandlerError and WebSocketCoreSession.processConnectionError.

Almost always when this method is called is with a NOOP callback.

There is one spot which uses the frame callback, which is why we don't want to fail the callback here because the frame callback on failure will call back processHandlerError.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
@lachlan-roberts lachlan-roberts merged commit cb60e2a into jetty-12.0.x Jan 29, 2024
9 checks passed
@lachlan-roberts lachlan-roberts deleted the jetty-12.0.x-ensureCallbackComplete-WebSocketCoreSession branch January 29, 2024 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants