]> git.kaiwu.me - nginx.git/commitdiff
read EOF of header only responses in non-buffered proxying
authorIgor Sysoev <igor@sysoev.ru>
Sun, 9 Sep 2007 18:32:53 +0000 (18:32 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 9 Sep 2007 18:32:53 +0000 (18:32 +0000)
src/http/ngx_http_upstream.c

index fa847729c78db3df9e73eaabc2f148e5a4bbd094..650c84c6ee8cb457deaae0503aebbfd9ae0a5220 100644 (file)
@@ -1490,6 +1490,11 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u)
                 ngx_http_upstream_finalize_request(r, u, 0);
                 return;
             }
+
+            if (u->peer.connection->read->ready) {
+                ngx_http_upstream_process_non_buffered_body(
+                                                     u->peer.connection->read);
+            }
         }
 
         return;