Mercurial > hg > nginx
comparison src/http/ngx_http_copy_filter_module.c @ 3084:2f35eeea86c2
preload just a single byte to avoid testing file overrun
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Sep 2009 16:59:23 +0000 |
parents | ffc270f696ed |
children | 2f400438466f |
comparison
equal
deleted
inserted
replaced
3083:ffe8bfb38184 | 3084:2f35eeea86c2 |
---|---|
169 } | 169 } |
170 | 170 |
171 c->busy_sendfile = NULL; | 171 c->busy_sendfile = NULL; |
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->preload, 4, 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 continue; | 177 continue; |
178 } | 178 } |
179 | 179 |