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 2013/10/22 10:55:07 UTC

svn commit: r1534543 - /tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java

Author: markt
Date: Tue Oct 22 08:55:07 2013
New Revision: 1534543

URL: http://svn.apache.org/r1534543
Log:
Remove socket from list of connections as soon as we know it is going to be closed.

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java?rev=1534543&r1=1534542&r2=1534543&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java Tue Oct 22 08:55:07 2013
@@ -923,6 +923,8 @@ public class AprEndpoint extends Abstrac
         // parent pool or acceptor socket.
         // In any case disable double free which would cause JVM core.
 
+        connections.remove(Long.valueOf(socket));
+
         // While the connector is running, destroySocket() will call
         // countDownConnection(). Once the connector is stopped, the latch is
         // removed so it does not matter that destroySocket() does not call



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