aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-09 18:32:53 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-09 18:32:53 +0000
commit3dea919675f032b04360c934266585d53e3ba114 (patch)
treec9f617969049d298603d38f180695ad38920cc92
parentec67b19ea01d8a71c64a64a183669549e091f7a8 (diff)
downloadnginx-3dea919675f032b04360c934266585d53e3ba114.tar.gz
nginx-3dea919675f032b04360c934266585d53e3ba114.zip
read EOF of header only responses in non-buffered proxying
-rw-r--r--src/http/ngx_http_upstream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index fa847729c..650c84c6e 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -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;