Mercurial > hg > nginx
changeset 5169:f6bbe77794aa
Upstream: fixed $upstream_response_length without buffering.
Reported by Piotr Sikora.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 11 Apr 2013 13:49:13 +0000 |
parents | 482fda984556 |
children | 6362bd26e4b0 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Wed Apr 10 17:07:44 2013 +0000 +++ b/src/http/ngx_http_upstream.c Thu Apr 11 13:49:13 2013 +0000 @@ -3307,7 +3307,7 @@ u->state->response_sec = tp->sec - u->state->response_sec; u->state->response_msec = tp->msec - u->state->response_msec; - if (u->pipe) { + if (u->pipe && u->pipe->read_length) { u->state->response_length = u->pipe->read_length; } }