Author: remm Date: Mon Jan 2 15:44:41 2017 New Revision: 1776954 URL: http://svn.apache.org/viewvc?rev=1776954&view=rev Log: 60508: Set request start time for HTTP/2. It seems appropriate to do it when creating a stream.
Modified: tomcat/trunk/java/org/apache/coyote/http2/Stream.java tomcat/trunk/webapps/docs/changelog.xml Modified: tomcat/trunk/java/org/apache/coyote/http2/Stream.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Stream.java?rev=1776954&r1=1776953&r2=1776954&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/coyote/http2/Stream.java (original) +++ tomcat/trunk/java/org/apache/coyote/http2/Stream.java Mon Jan 2 15:44:41 2017 @@ -97,6 +97,9 @@ class Stream extends AbstractStream impl this.coyoteResponse.setOutputBuffer(outputBuffer); this.coyoteRequest.setResponse(coyoteResponse); this.coyoteRequest.protocol().setString("HTTP/2.0"); + if (this.coyoteRequest.getStartTime() < 0) { + this.coyoteRequest.setStartTime(System.currentTimeMillis()); + } } Modified: tomcat/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1776954&r1=1776953&r2=1776954&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Mon Jan 2 15:44:41 2017 @@ -104,6 +104,9 @@ dynamic HPACK table, the next header block must begin with a dynamic table update. (markt) </fix> + <fix> + <bug>60508</bug>: Set request start time for HTTP/2. (remm) + </fix> </changelog> </subsection> <subsection name="Jasper"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org