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: [email protected]
For additional commands, e-mail: [email protected]