changeset 755:63b9dc652c3d

finalize nonbuffered request on timeout
author Igor Sysoev <igor@sysoev.ru>
date Tue, 10 Oct 2006 13:11:06 +0000
parents 4ac89c5aa10d
children d904b5cb3bba
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;