Author: pluknet Date: 2013-04-11 13:49:13 +0000 (Thu, 11 Apr 2013) New Revision: 5170 URL: http://trac.nginx.org/nginx/changeset/5170/nginx
Log: Upstream: fixed $upstream_response_length without buffering. Reported by Piotr Sikora. Modified: trunk/src/http/ngx_http_upstream.c Modified: trunk/src/http/ngx_http_upstream.c =================================================================== --- trunk/src/http/ngx_http_upstream.c 2013-04-10 17:07:44 UTC (rev 5169) +++ trunk/src/http/ngx_http_upstream.c 2013-04-11 13:49:13 UTC (rev 5170) @@ -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; } } _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-devel