comparison src/http/ngx_http_copy_filter_module.c @ 3778:d29e8060ca0c

always update an aio_senfile connection flag accodring to a current location configuration, this clears the flag for requests passed via a keep-alive connection
author Igor Sysoev <igor@sysoev.ru>
date Tue, 12 Oct 2010 12:18:39 +0000
parents 7450029ff51e
children 35f4997c08ce
comparison
equal deleted inserted replaced
3777:cd04f652478c 3778:d29e8060ca0c
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 (ngx_file_aio && clcf->aio) { 121 if (ngx_file_aio) {
122 ctx->aio_handler = ngx_http_copy_aio_handler; 122 if (clcf->aio) {
123 ctx->aio_handler = ngx_http_copy_aio_handler;
124 }
123 #if (NGX_HAVE_AIO_SENDFILE) 125 #if (NGX_HAVE_AIO_SENDFILE)
124 c->aio_sendfile = (clcf->aio == NGX_HTTP_AIO_SENDFILE); 126 c->aio_sendfile = (clcf->aio == NGX_HTTP_AIO_SENDFILE);
125 #endif 127 #endif
126 } 128 }
127 #endif 129 #endif