do not pass incoming buf chain twice if data are ready,

the bug was introduced in r3072
This commit is contained in:
Igor Sysoev 2009-09-07 12:10:07 +00:00
parent b72ec2f8fd
commit fc9404e1d9

View 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;
}