From: Igor Sysoev Date: Sun, 9 Sep 2007 18:32:53 +0000 (+0000) Subject: read EOF of header only responses in non-buffered proxying X-Git-Tag: release-0.6.11~5 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=3dea919675f032b04360c934266585d53e3ba114;p=nginx.git read EOF of header only responses in non-buffered proxying --- 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;