Author: markt Date: Tue Oct 8 22:32:33 2013 New Revision: 1530449 URL: http://svn.apache.org/r1530449 Log: Clear the handler then close the connection so the handler gets to the the exception that caused the problem rather than any exception that may happen during close.
Modified: tomcat/tc7.0.x/trunk/ (props changed) tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java Propchange: tomcat/tc7.0.x/trunk/ ------------------------------------------------------------------------------ Merged /tomcat/trunk:r1523555,1530418 Modified: tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java?rev=1530449&r1=1530448&r2=1530449&view=diff ============================================================================== --- tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java (original) +++ tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsRemoteEndpointImplServer.java Tue Oct 8 22:32:33 2013 @@ -89,18 +89,18 @@ public class WsRemoteEndpointImplServer } if (complete) { wsWriteTimeout.unregister(this); + clearHandler(null); if (close) { close(); } - clearHandler(null); break; } } } catch (IOException ioe) { wsWriteTimeout.unregister(this); - close(); clearHandler(ioe); + close(); } if (!complete) { // Async write is in progress --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org