http2 request log in accurate $request_time ?

Maxim Dounin mdounin at mdounin.ru
Wed Jan 22 17:45:32 UTC 2020


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
http://mdounin.ru/


More information about the nginx mailing list