Mercurial > hg > nginx-quic
comparison src/http/ngx_http_copy_filter_module.c @ 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 | 2f400438466f |
children | 4c90c9129a82 |
comparison
equal
deleted
inserted
replaced
3109:60bbe1764754 | 3110:c09bf4a53b79 |
---|---|
172 e = (ngx_http_ephemeral_t *) &r->uri_start; | 172 e = (ngx_http_ephemeral_t *) &r->uri_start; |
173 | 173 |
174 n = ngx_file_aio_read(file, &e->aio_preload, 1, offset, r->pool); | 174 n = ngx_file_aio_read(file, &e->aio_preload, 1, offset, r->pool); |
175 | 175 |
176 if (n > 0) { | 176 if (n > 0) { |
177 in = NULL; | |
177 continue; | 178 continue; |
178 } | 179 } |
179 | 180 |
180 rc = n; | 181 rc = n; |
181 | 182 |