You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fh...@apache.org on 2007/04/14 05:45:42 UTC

svn commit: r528751 - /tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java

Author: fhanik
Date: Fri Apr 13 20:45:41 2007
New Revision: 528751

URL: http://svn.apache.org/viewvc?view=rev&rev=528751
Log:
minor optimization, go directly to the poller, chances of another request being present at that very time is very slim

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java?view=diff&rev=528751&r1=528750&r2=528751
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/http11/Http11NioProcessor.java Fri Apr 13 20:45:41 2007
@@ -950,7 +950,12 @@
 
 
             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);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org