Mercurial > hg > nginx
comparison src/http/ngx_http_copy_filter_module.c @ 3776:7450029ff51e
file AIO read may be posted inside loop
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 12 Oct 2010 12:06:52 +0000 |
parents | eb3aaf8bd2a9 |
children | d29e8060ca0c |
comparison
equal
deleted
inserted
replaced
3775:2902fc8487ae | 3776:7450029ff51e |
---|---|
209 file->aio->data = r; | 209 file->aio->data = r; |
210 file->aio->handler = ngx_http_copy_aio_event_handler; | 210 file->aio->handler = ngx_http_copy_aio_event_handler; |
211 | 211 |
212 r->main->blocked++; | 212 r->main->blocked++; |
213 r->aio = 1; | 213 r->aio = 1; |
214 ctx->aio = 1; | |
214 } | 215 } |
215 | 216 |
216 | 217 |
217 static void | 218 static void |
218 ngx_http_copy_aio_event_handler(ngx_event_t *ev) | 219 ngx_http_copy_aio_event_handler(ngx_event_t *ev) |