Upstream: fixed $upstream_response_length without buffering.

Reported by Piotr Sikora.
This commit is contained in:
Sergey Kandaurov 2013-04-11 13:49:13 +00:00
parent c63b826d8b
commit 7a7650aeb1

View File

@ -3307,7 +3307,7 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
u->state->response_sec = tp->sec - u->state->response_sec; u->state->response_sec = tp->sec - u->state->response_sec;
u->state->response_msec = tp->msec - u->state->response_msec; 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; u->state->response_length = u->pipe->read_length;
} }
} }