tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55174] New: [jsr 356][websocket] MessageHandler never gets notified again after it throws exception
Date Mon, 01 Jul 2013 12:14:30 GMT
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: dev@tomcat.apache.org
          Reporter: s.boshev@gmail.com

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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message