You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/12/27 23:07:09 UTC
svn commit: r1426344 -
/tomcat/trunk/java/org/apache/tomcat/websocket/WsRemoteEndpoint.java
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