Ensure keepAliveLeft count is maintained with pipelined requests
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 5 May 2011 14:30:11 +0000 (14:30 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 5 May 2011 14:30:11 +0000 (14:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1099821 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11Processor.java

index c44c824..94dc4c7 100644 (file)
@@ -368,6 +368,9 @@ public class Http11Processor extends AbstractHttp11Processor {
             if (isAsync() || error || inputBuffer.lastValid == 0) {
                 break;
             }
+            
+            keepAliveLeft =
+                maxKeepAliveRequests>0?socketWrapper.decrementKeepAlive():-1;
         }
 
         rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);