From: Igor Sysoev Date: Mon, 7 Sep 2009 12:10:07 +0000 (+0000) Subject: do not pass incoming buf chain twice if data are ready, X-Git-Tag: release-0.8.15~13 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=9963b19f69d69204ad1c3578d1276601b4433422;p=nginx.git do not pass incoming buf chain twice if data are ready, the bug was introduced in r3072 --- diff --git a/src/http/ngx_http_copy_filter_module.c b/src/http/ngx_http_copy_filter_module.c index 713f44023..6be05a6a7 100644 --- a/src/http/ngx_http_copy_filter_module.c +++ b/src/http/ngx_http_copy_filter_module.c @@ -174,6 +174,7 @@ ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in) n = ngx_file_aio_read(file, &e->aio_preload, 1, offset, r->pool); if (n > 0) { + in = NULL; continue; }