From fc9404e1d9c7667b5bc910b0fb3db92c384b5b8e Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 7 Sep 2009 12:10:07 +0000 Subject: [PATCH] do not pass incoming buf chain twice if data are ready, the bug was introduced in r3072 --- src/http/ngx_http_copy_filter_module.c | 1 + 1 file changed, 1 insertion(+) 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; }