Author: markt Date: Sun Mar 17 18:51:06 2013 New Revision: 1457515 URL: http://svn.apache.org/r1457515 Log: Don't re-throw exception if we can't send the close message. Use onError.
Modified: tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java Modified: tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java?rev=1457515&r1=1457514&r2=1457515&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java (original) +++ tomcat/trunk/java/org/apache/tomcat/websocket/WsSession.java Sun Mar 17 18:51:06 2013 @@ -352,7 +352,7 @@ public class WsSession implements Sessio // deal with the Exception log.error(sm.getString("wsSession.sendCloseFail"), ioe); wsRemoteEndpoint.close(); - throw ioe; + localEndpoint.onError(this, ioe); } finally { webSocketContainer.unregisterSession( localEndpoint.getClass(), this); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org