comparison src/http/ngx_http_file_cache.c @ 6022:1fdba317ee6d

Added support for offloading read() in thread pools.
author Valentin Bartenev <vbart@nginx.com>
date Sat, 14 Mar 2015 17:37:25 +0300
parents 174512857ccf
children d698c300b9ff
comparison
equal deleted inserted replaced
6021:117c77b22db1 6022:1fdba317ee6d
644 goto noaio; 644 goto noaio;
645 } 645 }
646 646
647 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); 647 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
648 648
649 if (!clcf->aio) { 649 if (clcf->aio != NGX_HTTP_AIO_ON) {
650 goto noaio; 650 goto noaio;
651 } 651 }
652 652
653 n = ngx_file_aio_read(&c->file, c->buf->pos, c->body_start, 0, r->pool); 653 n = ngx_file_aio_read(&c->file, c->buf->pos, c->body_start, 0, r->pool);
654 654