# HG changeset patch # User Igor Sysoev # Date 1252325407 0 # Node ID c09bf4a53b79508bc5962684e6f993d65f8833a9 # Parent 60bbe176475420b0675106ffc4ccc8e348b633cd 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 --- 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 n = ngx_file_aio_read(file, &e->aio_preload, 1, offset, r->pool); if (n > 0) { + in = NULL; continue; }