Fix the immediate problem described in https://issues.apache.org/bugzilla/show_bug...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 4 Apr 2010 16:26:51 +0000 (16:26 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 4 Apr 2010 16:26:51 +0000 (16:26 +0000)
Still need review remainder of bug report

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@930711 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/AprEndpoint.java

index df00a6c..1d80e74 100644 (file)
@@ -848,7 +848,7 @@ public class AprEndpoint extends AbstractEndpoint {
             pool = Pool.create(serverSockPool);
             int size = pollerSize / pollerThreadCount;
             int timeout = getKeepAliveTimeout();
-            if (timeout < 0) {
+            if (timeout <= 0) {
                 timeout = socketProperties.getSoTimeout();
             }
             serverPollset = allocatePoller(size, pool, timeout);