From: markt Date: Mon, 5 Sep 2011 16:54:25 +0000 (+0000) Subject: Start timing request processing after the request line has been read and before the... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f6f9c78864f45a8affb5ba41bc482155fefcad03;p=tomcat7.0 Start timing request processing after the request line has been read and before the request headers are read (aligns with other HTTP connectors) git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1165360 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11NioProcessor.java b/java/org/apache/coyote/http11/Http11NioProcessor.java index 437f24da5..2f5af31df 100644 --- a/java/org/apache/coyote/http11/Http11NioProcessor.java +++ b/java/org/apache/coyote/http11/Http11NioProcessor.java @@ -206,7 +206,7 @@ public class Http11NioProcessor extends AbstractHttp11Processor { inputBuffer.init(socketWrapper, endpoint); outputBuffer.init(socketWrapper, endpoint); - // Error flag + // Flags error = false; keepAlive = true; comet = false; @@ -256,6 +256,7 @@ public class Http11NioProcessor extends AbstractHttp11Processor { } } if (!endpoint.isPaused()) { + request.setStartTime(System.currentTimeMillis()); keptAlive = true; if ( !inputBuffer.parseHeaders() ) { //we've read part of the request, don't recycle it @@ -264,7 +265,6 @@ public class Http11NioProcessor extends AbstractHttp11Processor { readComplete = false; break; } - request.setStartTime(System.currentTimeMillis()); if (!disableUploadTimeout) { //only for body, not for request headers socketWrapper.getSocket().getIOChannel().socket().setSoTimeout( connectionUploadTimeout);