From ac8dfae85537bcd7d47877d7926346152b82c725 Mon Sep 17 00:00:00 2001 From: fhanik Date: Thu, 22 Mar 2007 14:22:00 +0000 Subject: [PATCH] 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 --- java/org/apache/coyote/http11/Http11NioProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0