$request_time is 0.000 with gzip/chunked?

Anton Yuzhaninov citrin at citrin.ru
Thu Jan 30 10:09:02 UTC 2014


On 01/29/14 23:25, Robert Coup wrote:
>
> I get a zero $request_time in the access log for gzipped+chunked transfer
> requests if nothing else is running (ie. ngx_time_update() doesn't get called
> for another request or something else). If I don't send Accept-Encoding with my
> request I get the expected time.
>
> curl -v --compressed http://192.168.56.101/big.html > /dev/null
> 192.168.56.1 - - [30/Jan/2014:07:56:24 +1300] "GET /big.html HTTP/1.1" 200
> 77859237 "-" "curl/7.30.0" "-" reqtime=0.000

I can't repeat problem with my nginx 1.5.9

* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Server: nginx/1.5.9
< Date: Thu, 30 Jan 2014 10:06:45 GMT
< Content-Type: text/plain; charset=utf-8
< Last-Modified: Thu, 30 Jan 2014 10:03:46 GMT
< Transfer-Encoding: chunked
< Content-Encoding: gzip

Request time in logs - 2.087

1. Do you have the timer_resolution directive in you config? Try to remove it 
for test.

2. Try to run
curl --limit-rate 100k
to be sure, that request time >> 1 ms.

Try to analyze debug log:
http://wiki.nginx.org/Debugging



More information about the nginx-devel mailing list