tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1528430 - /tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsHttpUpgradeHandler.java
Date Wed, 02 Oct 2013 11:28:06 GMT
Author: markt
Date: Wed Oct  2 11:28:06 2013
New Revision: 1528430

URL: http://svn.apache.org/r1528430
Log:
IOExceptions need to trigger the closing of the WebSocket connection.

Modified:
    tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsHttpUpgradeHandler.java

Modified: tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsHttpUpgradeHandler.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsHttpUpgradeHandler.java?rev=1528430&r1=1528429&r2=1528430&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsHttpUpgradeHandler.java
(original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/server/WsHttpUpgradeHandler.java
Wed Oct  2 11:28:06 2013
@@ -198,6 +198,9 @@ public class WsHttpUpgradeHandler implem
                 wsProtocolHandler.close(cr);
             } catch (IOException ioe) {
                 onError(ioe);
+                CloseReason cr = new CloseReason(
+                        CloseCodes.CLOSED_ABNORMALLY, ioe.getMessage());
+                wsProtocolHandler.close(cr);
             }
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message