Mercurial > hg > nginx-quic
comparison 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 |
comparison
equal
deleted
inserted
replaced
3293:8abb88374c6c | 3294:04cfc09b8b8d |
---|---|
116 | 116 |
117 ctx->output_filter = (ngx_output_chain_filter_pt) ngx_http_next_filter; | 117 ctx->output_filter = (ngx_output_chain_filter_pt) ngx_http_next_filter; |
118 ctx->filter_ctx = r; | 118 ctx->filter_ctx = r; |
119 | 119 |
120 #if (NGX_HAVE_FILE_AIO) | 120 #if (NGX_HAVE_FILE_AIO) |
121 if (clcf->aio) { | 121 if (ngx_file_aio && clcf->aio) { |
122 ctx->aio_handler = ngx_http_copy_aio_handler; | 122 ctx->aio_handler = ngx_http_copy_aio_handler; |
123 #if (NGX_HAVE_AIO_SENDFILE) | 123 #if (NGX_HAVE_AIO_SENDFILE) |
124 c->aio_sendfile = (clcf->aio == NGX_HTTP_AIO_SENDFILE); | 124 c->aio_sendfile = (clcf->aio == NGX_HTTP_AIO_SENDFILE); |
125 #endif | 125 #endif |
126 } | 126 } |