]> git.kaiwu.me - nginx.git/commitdiff
finalize nonbuffered request on timeout
authorIgor Sysoev <igor@sysoev.ru>
Tue, 10 Oct 2006 13:11:06 +0000 (13:11 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 10 Oct 2006 13:11:06 +0000 (13:11 +0000)
src/http/ngx_http_upstream.c

index ebc30be3ecdfd0b339bc4baaf63f1a2465a900a1..71b9b89de9f0bf93a564b2aab0d7d396cb07d57b 100644 (file)
@@ -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;