Mercurial > hg > nginx
comparison src/http/ngx_http_copy_filter_module.c @ 6004:2dac6ae6d703
Deprecated "aio sendfile".
Specifying "sendfile on" along with "aio on" activates the
aio pre-loading mode for sendfile().
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 12 Mar 2015 20:06:04 +0300 |
parents | ccad84a174e0 |
children | 1fdba317ee6d |
comparison
equal
deleted
inserted
replaced
6003:cf2f8d91cf09 | 6004:2dac6ae6d703 |
---|---|
119 ctx->output_filter = (ngx_output_chain_filter_pt) | 119 ctx->output_filter = (ngx_output_chain_filter_pt) |
120 ngx_http_next_body_filter; | 120 ngx_http_next_body_filter; |
121 ctx->filter_ctx = r; | 121 ctx->filter_ctx = r; |
122 | 122 |
123 #if (NGX_HAVE_FILE_AIO) | 123 #if (NGX_HAVE_FILE_AIO) |
124 if (ngx_file_aio) { | 124 if (ngx_file_aio && clcf->aio) { |
125 if (clcf->aio) { | 125 ctx->aio_handler = ngx_http_copy_aio_handler; |
126 ctx->aio_handler = ngx_http_copy_aio_handler; | |
127 } | |
128 #if (NGX_HAVE_AIO_SENDFILE) | 126 #if (NGX_HAVE_AIO_SENDFILE) |
129 if (clcf->aio == NGX_HTTP_AIO_SENDFILE) { | 127 ctx->aio_preload = ngx_http_copy_aio_sendfile_preload; |
130 ctx->aio_preload = ngx_http_copy_aio_sendfile_preload; | |
131 } | |
132 #endif | 128 #endif |
133 } | 129 } |
134 #endif | 130 #endif |
135 | 131 |
136 if (in && in->buf && ngx_buf_size(in->buf)) { | 132 if (in && in->buf && ngx_buf_size(in->buf)) { |