mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 22:56:59 +08:00
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
This commit is contained in:
parent
3bff22f2e2
commit
824856fc10
@ -118,8 +118,10 @@ ngx_http_copy_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||||||
ctx->filter_ctx = r;
|
ctx->filter_ctx = r;
|
||||||
|
|
||||||
#if (NGX_HAVE_FILE_AIO)
|
#if (NGX_HAVE_FILE_AIO)
|
||||||
if (ngx_file_aio && clcf->aio) {
|
if (ngx_file_aio) {
|
||||||
ctx->aio_handler = ngx_http_copy_aio_handler;
|
if (clcf->aio) {
|
||||||
|
ctx->aio_handler = ngx_http_copy_aio_handler;
|
||||||
|
}
|
||||||
#if (NGX_HAVE_AIO_SENDFILE)
|
#if (NGX_HAVE_AIO_SENDFILE)
|
||||||
c->aio_sendfile = (clcf->aio == NGX_HTTP_AIO_SENDFILE);
|
c->aio_sendfile = (clcf->aio == NGX_HTTP_AIO_SENDFILE);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user