-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
WebSockets Next: provide strategies to process unhandled failures #40648
Comments
It would nice to have an option to redirect a user to a configured page once the connection is closed |
I don't think that's possible. There's no HTTP response once the upgrade is finished. We could use a specific close reason though. |
I mean not possible after the upgrade but it should be possible if we detect a problem during the handshake, e.g. once we implement #40622. However, this issue is more generic, not specifically related to security. |
Sure |
That would be very helpful. But there is a question: Ideally WDYT? |
BTW I realize this issue is not security specific, it applies for other failures as well, but I hope the question is still valid. |
No problem. Speaking of "eagerly performed |
Sounds acceptable. We can collect feedback from others. Personally I think if it is highlighted in docs it will be useful feature. Thank you |
- resolves quarkusio#40648 - also add WebSocketConnection#closeReason() and WebSocketClientConnection#closeReason()
- resolves quarkusio#40648 - also add WebSocketConnection#closeReason() and WebSocketClientConnection#closeReason()
- resolves quarkusio#40648 - also add WebSocketConnection#closeReason() and WebSocketClientConnection#closeReason()
- resolves quarkusio#40648 - also add WebSocketConnection#closeReason() and WebSocketClientConnection#closeReason()
- resolves quarkusio#40648 - also add WebSocketConnection#closeReason() and WebSocketClientConnection#closeReason()
Description
Right now, we log an error message when a unhandled failure occurs (unless it's a "WebSocket closed" error in which case we only log a debug message).
It seems reasonable to provide several strategies instead:
The text was updated successfully, but these errors were encountered: