- Fix problem with blocking reads for keepalive when using an executor (the number...
authorremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 22 Mar 2007 12:58:07 +0000 (12:58 +0000)
committerremm <remm@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 22 Mar 2007 12:58:07 +0000 (12:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@521246 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/ajp/AjpAprProcessor.java
java/org/apache/coyote/http11/Http11AprProcessor.java

index 693d656..a9659ee 100644 (file)
@@ -385,7 +385,7 @@ public class AjpAprProcessor implements ActionHook {
             try {
                 // Get first message of the request
                 if (!readMessage(requestHeaderMessage, true,
-                        keptAlive && (endpoint.getCurrentThreadsBusy() > limit))) {
+                        keptAlive && (endpoint.getCurrentThreadsBusy() >= limit))) {
                     // This means that no data is available right now
                     // (long keepalive), so that the processor should be recycled
                     // and the method should return true
index 7e80637..124a72c 100644 (file)
@@ -816,7 +816,7 @@ public class Http11AprProcessor implements ActionHook {
                     Socket.timeoutSet(socket, soTimeout * 1000);
                 }
                 if (!inputBuffer.parseRequestLine
-                        (keptAlive && (endpoint.getCurrentThreadsBusy() > limit))) {
+                        (keptAlive && (endpoint.getCurrentThreadsBusy() >= limit))) {
                     // This means that no data is available right now
                     // (long keepalive), so that the processor should be recycled
                     // and the method should return true