From: Igor Sysoev Date: Tue, 10 Oct 2006 13:11:06 +0000 (+0000) Subject: finalize nonbuffered request on timeout X-Git-Tag: release-0.4.7~5 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=52ec2c48b9e80760576286bf5432d61e3c315475;p=nginx.git finalize nonbuffered request on timeout --- diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index ebc30be3e..71b9b89de 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1520,6 +1520,9 @@ ngx_http_upstream_process_non_buffered_body(ngx_event_t *ev) } else { ngx_connection_error(c, NGX_ETIMEDOUT, "upstream timed out"); } + + ngx_http_upstream_finalize_request(r, u, 0); + return; } r = c->data;