Mercurial > hg > nginx
changeset 2066:2bb4441a8c28
fix bug when inactive subrequest is truncated,
if output_buffers are less than subrequest size
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 26 Jun 2008 12:45:37 +0000 |
parents | 520cb18b64fb |
children | 5657037448d1 |
files | src/http/ngx_http_postpone_filter_module.c |
diffstat | 1 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_postpone_filter_module.c Thu Jun 26 07:59:30 2008 +0000 +++ b/src/http/ngx_http_postpone_filter_module.c Thu Jun 26 12:45:37 2008 +0000 @@ -168,7 +168,7 @@ pr = r->postponed; if (pr == NULL) { - return NGX_OK; + break; } if (pr->request) { @@ -196,7 +196,7 @@ } if (pr == NULL) { - return NGX_OK; + break; } out = pr->out; @@ -215,6 +215,17 @@ r->postponed = r->postponed->next; } + + if (r->out) { + ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http postpone filter out again \"%V?%V\"", + &r->uri, &r->args); + + r->connection->data = r; + return NGX_AGAIN; + } + + return NGX_OK; }