changeset 1527:95e76183ec4f stable-0.5

r1469 merge: read EOF of header only responses in non-buffered proxying
author Igor Sysoev <igor@sysoev.ru>
date Sun, 23 Sep 2007 19:21:45 +0000
parents 85e12fc61211
children 4699bab788c0
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1488,6 +1488,11 @@ ngx_http_upstream_send_response(ngx_http
                 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;