From: fhanik Date: Thu, 22 Mar 2007 14:22:00 +0000 (+0000) Subject: same fix as for APR, always try to do a non blocking read for the 2nd request, busy... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ac8dfae85537bcd7d47877d7926346152b82c725;p=tomcat7.0 same fix as for APR, always try to do a non blocking read for the 2nd request, busy threads return 0 with the executor git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@521284 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11NioProcessor.java b/java/org/apache/coyote/http11/Http11NioProcessor.java index 1b728cf88..36fb60536 100644 --- a/java/org/apache/coyote/http11/Http11NioProcessor.java +++ b/java/org/apache/coyote/http11/Http11NioProcessor.java @@ -832,7 +832,7 @@ public class Http11NioProcessor implements ActionHook { socket.getIOChannel().socket().setSoTimeout((int)soTimeout); inputBuffer.readTimeout = soTimeout; } - if (!inputBuffer.parseRequestLine(keptAlive && (endpoint.getCurrentThreadsBusy() > limit))) { + if (!inputBuffer.parseRequestLine(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