From: fhanik Date: Sat, 14 Apr 2007 03:45:41 +0000 (+0000) Subject: minor optimization, go directly to the poller, chances of another request being prese... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=60d3d0def4ed627b9ef6cc5f7c7c8927904fa862;p=tomcat7.0 minor optimization, go directly to the poller, chances of another request being present at that very time is very slim git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@528751 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11NioProcessor.java b/java/org/apache/coyote/http11/Http11NioProcessor.java index 6fd23fd60..b4624d931 100644 --- a/java/org/apache/coyote/http11/Http11NioProcessor.java +++ b/java/org/apache/coyote/http11/Http11NioProcessor.java @@ -950,7 +950,12 @@ public class Http11NioProcessor implements ActionHook { rp.setStage(org.apache.coyote.Constants.STAGE_KEEPALIVE); - + //we're at a keep alive stage, + openSocket = true; + //Add the socket to the poller + socket.getPoller().add(socket); + //free up the thread + break; } rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);