finalize nonbuffered request on timeout
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index ebc30be..71b9b89 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1520,6 +1520,9 @@
         } else {
             ngx_connection_error(c, NGX_ETIMEDOUT, "upstream timed out");
         }
+
+        ngx_http_upstream_finalize_request(r, u, 0);
+        return;
     }
 
     r = c->data;