]> git.kaiwu.me - nginx.git/commitdiff
do not pass incoming buf chain twice if data are ready,
authorIgor Sysoev <igor@sysoev.ru>
Mon, 7 Sep 2009 12:10:07 +0000 (12:10 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 7 Sep 2009 12:10:07 +0000 (12:10 +0000)
the bug was introduced in r3072

src/http/ngx_http_copy_filter_module.c

index 713f440236f88359ead463dc3d03dbfc0d47380c..6be05a6a73f29facf07fb617dd3847f810d0a505 100644 (file)
@@ -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;
             }