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

WebSocketChannel bug fixes, cleanup and javadoc updates for FrameHandler #3432

Conversation

lachlan-roberts
Copy link
Contributor

these are the changes from #3365 which are not related to the WebSocketProxy

  • update javadoc of FrameHandler

  • pass the cause from the AbnormalCloseStatus to closeConnection in
    WSChannel

  • If onOpen() throws we now throw a runtime exception in addition to
    failing the callback, this is to fail the CompletableFuture in the
    ClientUpgradeRequest.

  • new utility method in Callback used in WSChannel and will be used in WebSocketProxy as well

pass the cause from the AbnormalCloseStatus to closeConnection in
WSChannel

If onOpen throws we now throw a runtime exception in addition to
failing the callback, this is to fail the CompletableFuture in the
ClientUpgradeRequest.

Signed-off-by: lachan-roberts <lachlan@webtide.com>
Signed-off-by: lachan-roberts <lachlan@webtide.com>
Copy link
Contributor

@gregw gregw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gregw gregw merged commit 4bb6a92 into jetty:jetty-10.0.x Mar 6, 2019
@lachlan-roberts lachlan-roberts deleted the jetty-10.0.x-websocket-fixes-from-proxy branch July 1, 2019 08:08
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.

2 participants