tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1426344 - /tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpoint.java
Date Thu, 27 Dec 2012 22:07:09 GMT
Author: markt
Date: Thu Dec 27 22:07:09 2012
New Revision: 1426344

URL: http://svn.apache.org/viewvc?rev=1426344&view=rev
Log:
Spotted a couple of threads hanging waiting on this barrier after an aborted Autobahn test.
Try and stop that from happening.

Modified:
    tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpoint.java?rev=1426344&r1=1426343&r2=1426344&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpoint.java Thu Dec 27 22:07:09
2012
@@ -263,6 +263,11 @@ public class WsRemoteEndpoint implements
                 }
             }
         }
+        if (opCode == Constants.OPCODE_CLOSE) {
+            // Connection is closing - ensure no threads are stuck waiting on
+            // the write barrier
+            writeBarrier.reset();
+        }
     }
 
 



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


Mime
View raw message