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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org