Mercurial > hg > nginx
diff src/http/ngx_http_postpone_filter_module.c @ 597:9262f520ce21 release-0.3.20
nginx-0.3.20-RELEASE import
*) Bugfix: in SSI handling.
*) Bugfix: the ngx_http_memcached_module did not support the keys in
the "/usr?args" form.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Jan 2006 15:26:57 +0000 |
parents | ebc68d8ca496 |
children | 5e8fb59c18c1 |
line wrap: on
line diff
--- a/src/http/ngx_http_postpone_filter_module.c +++ b/src/http/ngx_http_postpone_filter_module.c @@ -96,7 +96,9 @@ ngx_http_postpone_filter(ngx_http_reques if (r->postponed) { out = r->postponed->out; - r->postponed = r->postponed->next; + if (out) { + r->postponed = r->postponed->next; + } } else { out = in; @@ -104,7 +106,10 @@ ngx_http_postpone_filter(ngx_http_reques rc = NGX_OK; - if (out || r->main->out || r->main->connection->buffered) { + if (out + || (r->connection->buffered + & (NGX_HTTP_LOWLEVEL_BUFFERED|NGX_LOWLEVEL_BUFFERED))) + { ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "http postpone filter out \"%V?%V\"", &r->uri, &r->args); @@ -170,6 +175,10 @@ ngx_http_postpone_filter_output_postpone pr = r->postponed; } + if (pr == NULL) { + return NGX_OK; + } + out = pr->out; if (out) {