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 streamby xt3627216 - Nginx Mailing List - English
In our production env, I found that $request_time is very large under http2 protocol. by the way, some requests, not every one.by xt3627216 - Nginx Mailing List - English
nginx version: nginx-1.9.5 hi,nginx compute $request_time in log phase, which is in ngx_http_free_request (r) -> ngx_http_log_request(r) -> log_handler(r) but in http2 world, I see every request closed through ngx_http_v2_close_stream(stream, rc) in ngx_http_v2_close_stream have code below: ``` void ngx_http_v2_close_stream(ngx_http_v2_stream_t *stream,by xt3627216 - Nginx Mailing List - English