Mercurial > hg > nginx-ranges
diff src/http/ngx_http_copy_filter_module.c @ 118:644a7935144b NGINX_0_3_6
nginx 0.3.6
*) Change: now the IMAP/POP3 proxy do not send the empty login to
authorization server.
*) Feature: the "log_format" supports the variables in the $name form.
*) Bugfix: if at least in one server was no the "listen" directive,
then nginx did not listen on the 80 port; bug appeared in 0.3.3.
*) Bugfix: if the URI part is omitted in "proxy_pass" directive, the
the 80 port was always used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 24 Oct 2005 00:00:00 +0400 |
parents | 71c46860eb55 |
children | 91372f004adf |
line wrap: on
line diff
--- a/src/http/ngx_http_copy_filter_module.c +++ b/src/http/ngx_http_copy_filter_module.c @@ -70,21 +70,12 @@ static ngx_http_output_body_filter_pt static ngx_int_t ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in) { - ngx_int_t rc; ngx_output_chain_ctx_t *ctx; ngx_http_copy_filter_conf_t *conf; ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "copy filter: \"%V\"", &r->uri); - if (r->connection->closed) { - rc = ngx_http_next_filter(r, in); - - ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "copy closed filter: %i \"%V\"", rc, &r->uri); - return rc; - } - ctx = ngx_http_get_module_ctx(r, ngx_http_copy_filter_module); if (ctx == NULL) { @@ -111,12 +102,9 @@ ngx_http_copy_filter(ngx_http_request_t } - rc = ngx_output_chain(ctx, in); + /* the request pool may be already destroyed after ngx_output_chain()*/ - ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "copy filter: %i \"%V\"", rc, &r->uri); - - return rc; + return ngx_output_chain(ctx, in); }