# HG changeset patch # User Igor Sysoev # Date 1160485866 0 # Node ID 63b9dc652c3dee34c2a796a7a1e2a065384a03d3 # Parent 4ac89c5aa10d5f8a244efd9f75db2b3cb75e46b7 finalize nonbuffered request on timeout diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1520,6 +1520,9 @@ ngx_http_upstream_process_non_buffered_b } else { ngx_connection_error(c, NGX_ETIMEDOUT, "upstream timed out"); } + + ngx_http_upstream_finalize_request(r, u, 0); + return; } r = c->data;