Mercurial > hg > nginx
diff src/http/ngx_http_copy_filter_module.c @ 3294:04cfc09b8b8d
export aio presence knowledge to prevent using "aio sendfile",
if aio does not present
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 05 Nov 2009 13:12:30 +0000 |
parents | 4c90c9129a82 |
children | eb3aaf8bd2a9 |
line wrap: on
line diff
--- a/src/http/ngx_http_copy_filter_module.c +++ b/src/http/ngx_http_copy_filter_module.c @@ -118,7 +118,7 @@ ngx_http_copy_filter(ngx_http_request_t ctx->filter_ctx = r; #if (NGX_HAVE_FILE_AIO) - if (clcf->aio) { + if (ngx_file_aio && clcf->aio) { ctx->aio_handler = ngx_http_copy_aio_handler; #if (NGX_HAVE_AIO_SENDFILE) c->aio_sendfile = (clcf->aio == NGX_HTTP_AIO_SENDFILE);