tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1519403 - /tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java
Date Mon, 02 Sep 2013 12:08:03 GMT
Author: markt
Date: Mon Sep  2 12:08:03 2013
New Revision: 1519403

URL: http://svn.apache.org/r1519403
Log:
Add the keptAlive flag to BIO. It is unused but adding it brings BIO closer to the other connectors
which will aid refactoring.

Modified:
    tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java

Modified: tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java?rev=1519403&r1=1519402&r2=1519403&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java (original)
+++ tomcat/trunk/java/org/apache/coyote/ajp/AjpProcessor.java Mon Sep  2 12:08:03 2013
@@ -108,11 +108,13 @@ public class AjpProcessor extends Abstra
         // Error flag
         error = false;
 
+        boolean keptAlive = false;
+
         while (!error && !endpoint.isPaused()) {
             // Parsing the request header
             try {
                 // Get first message of the request
-                if (!readMessage(requestHeaderMessage, true)) {
+                if (!readMessage(requestHeaderMessage, !keptAlive)) {
                     // This means a connection timeout
                     break;
                 }
@@ -144,6 +146,7 @@ public class AjpProcessor extends Abstra
                     error = true;
                     break;
                 }
+                keptAlive = true;
                 request.setStartTime(System.currentTimeMillis());
             } catch (IOException e) {
                 error = true;



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


Mime
View raw message