https://issues.apache.org/bugzilla/show_bug.cgi?id=55174
Bug ID: 55174
Summary: [jsr 356][websocket] MessageHandler never gets
notified again after it throws exception
Product: Tomcat 8
Version: trunk
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
I have a test which adds a MessageHandler which gets notified on text messages.
If its implementation method onMessage(String text) throws some exception (e.g.
runtime exception), this MessageHandler will never ever be notified again for
any new text messages received by the session.
I suppose this happens because the exception actually kills the underlying
thread in which the notification has happened. I think the client side
implementation shall be more robust and expect and be prepared for exceptions
coming from calls to user code.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]