changeset 3110:c09bf4a53b79

do not pass incoming buf chain twice if data are ready, the bug was introduced in r3072
author Igor Sysoev <igor@sysoev.ru>
date Mon, 07 Sep 2009 12:10:07 +0000
parents 60bbe1764754
children 4a2d3f571de6
files src/http/ngx_http_copy_filter_module.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
             }