You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WebSocketServer crashes when overridden methods throw Exceptions #1481
Describe the bug
WebSocketServer crashes when overridden methods (onClose, onError) throw Exceptions.
It hit us in production: Due to circumstances, our implementation threw some exceptions in the wrong places for one "bad" websocket client. The exceptions led to the WebSocketServer crash: The server wasn't accepting any more client connections, even from "good" clients.
To Reproduce
Steps to reproduce the behavior: I've prepared a minimal reproducer:
Expected behavior
Maybe more "desirable" would be a WebSocketServer that stays up, no matter which exceptions are thrown in the "onOpen" and "onError" method implementations.
Environment(please complete the following information):
Activity
marktech0813 commentedon Nov 11, 2025
Hi, Can I handle this issue now?