]> git.kaiwu.me - nginx.git/commitdiff
r1469 merge:
authorIgor Sysoev <igor@sysoev.ru>
Sun, 23 Sep 2007 19:21:45 +0000 (19:21 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 23 Sep 2007 19:21:45 +0000 (19:21 +0000)
read EOF of header only responses in non-buffered proxying

src/http/ngx_http_upstream.c

index 2140d855d5a8a590cc6f6252c24f679d65d8afa6..7986f0fdffa166a4690573c0c641505ecaaa19f3 100644 (file)
@@ -1488,6 +1488,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;