Author: markt
Date: Tue Oct 1 18:19:21 2013
New Revision: 1528169
URL: http://svn.apache.org/r1528169
Log:
If there are sockets to close, close them rather than waiting for the
next Poller run.
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=1528169&r1=1528168&r2=1528169&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 1
18:19:21 2013
@@ -1631,7 +1631,7 @@ public class AprEndpoint extends Abstrac
}
// Check timeouts if the poller is empty
while (pollerRunning && connectionCount.get() < 1 &&
- addList.size() < 1) {
+ addList.size() < 1 && closeList.size() < 1) {
// Reset maintain time.
try {
if (getSoTimeout() > 0 && pollerRunning) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]