Mercurial > hg > nginx-vendor-0-7
diff src/http/ngx_http_postpone_filter_module.c @ 190:3689cd4e3228 NGINX_0_3_42
nginx 0.3.42
*) Feature: the "bind" option of the "listen" directive in IMAP/POP3
proxy.
*) Bugfix: if the same capture in the "rewrite" directive was used more
then once.
*) Bugfix: the $sent_http_content_type, $sent_http_content_length,
$sent_http_last_modified, $sent_http_connection,
$sent_http_keep_alive, and $sent_http_transfer_encoding variables
were not written to access log.
*) Bugfix: the $sent_http_cache_control returned value of the single
"Cache-Control" response header line.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 26 Apr 2006 00:00:00 +0400 |
parents | 36af50a5582d |
children | af7f2341ecc5 |
line wrap: on
line diff
--- a/src/http/ngx_http_postpone_filter_module.c +++ b/src/http/ngx_http_postpone_filter_module.c @@ -89,6 +89,22 @@ ngx_http_postpone_filter(ngx_http_reques return NGX_ERROR; } +#if 1 + { + ngx_chain_t *cl; + ngx_buf_t *b = NULL; + for (cl = pr->out; cl; cl = cl->next) { + if (cl->buf == b) { + ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0, + "the same buf was used in postponed"); + ngx_debug_point(); + return NGX_ERROR; + } + b = cl->buf; + } + } +#endif + if (r != r->connection->data || r->postponed->request) { return NGX_AGAIN; }