diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-07-05 11:42:11 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-07-05 11:42:11 +0000 |
| commit | 4bbe5ee871a0e4681bdf7ac8a13555f29834bbb8 (patch) | |
| tree | 5ab36c95a02637c366a49e5d633e0217e39b97ae /src/http/ngx_http_upstream.c | |
| parent | d79ae709ab7de1863aacd62fb967a059311cfb47 (diff) | |
| download | nginx-4bbe5ee871a0e4681bdf7ac8a13555f29834bbb8.tar.gz nginx-4bbe5ee871a0e4681bdf7ac8a13555f29834bbb8.tar.bz2 | |
r1260 merge:
if subrequest response was buffered in file, then subrequest was finalized
with 0 code, ngx_http_writer() was not set, and response part in file was lost
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 392783664..c1bae266c 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2157,8 +2157,17 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r, r->connection->log->action = "sending to client"; - if (rc == 0 && r == r->main && !r->post_action) { - rc = ngx_http_send_special(r, NGX_HTTP_LAST); + if (rc == 0) { + if (r == r->main) { + if (!r->post_action) { + rc = ngx_http_send_special(r, NGX_HTTP_LAST); + } + + } else { + if (r->out) { + rc = NGX_AGAIN; + } + } } ngx_http_finalize_request(r, rc); |
