http2 request log in accurate $request_time ?

xt3627216 nginx-forum at
Thu Jan 23 06:37:42 UTC 2020

Maxim Dounin Wrote:
> Hello!
> On Wed, Jan 22, 2020 at 10:38:42AM -0500, xt3627216 wrote:
> [...]
> > if  stream->queued  is true,   then ngx_http_free_request will not
> be called
> > immediately, which will result $request_time larger then real
> request time?
> If stream->queued is true, this means that there are unsent frames 
> in the stream, and the request is not yet complete.  As such, 
> queue "larger" $request_time is correct, as it is expected to 
> account sending the response to client as well.
> -- 
> Maxim Dounin
> _______________________________________________
> nginx mailing list
> nginx at

thanks Maxim, I see your point.

Anyway, I found some http2 requests have large $request_time in my logs(
which is unreasonable large),  will you be sure that the $request_time in
http2 protocol 

compute correctly. ?  the value of $request_time denote the actual time of 

Will the multiplexing mechanism  affect  “mis-computing" the value of RT. 

thanks many.

Posted at Nginx Forum:,286797,286806#msg-286806

More information about the nginx mailing list