Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 5980:ccad84a174e0
Refactored sendfile() AIO preload.
This reduces layering violation and simplifies the logic of AIO preread, since
it's now triggered by the send chain function itself without falling back to
the copy filter. The context of AIO operation is now stored per file buffer,
which makes it possible to properly handle cases when multiple buffers come
from different locations, each with its own configuration.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 11 Feb 2015 17:52:15 +0300 |
parents | 8dfee01ff0bd |
children | f8ee988cfe6d |
comparison
equal
deleted
inserted
replaced
5979:b2920b517490 | 5980:ccad84a174e0 |
---|---|
572 }; | 572 }; |
573 | 573 |
574 | 574 |
575 typedef struct { | 575 typedef struct { |
576 ngx_http_posted_request_t terminal_posted_request; | 576 ngx_http_posted_request_t terminal_posted_request; |
577 #if (NGX_HAVE_AIO_SENDFILE) | |
578 u_char aio_preload; | |
579 #endif | |
580 } ngx_http_ephemeral_t; | 577 } ngx_http_ephemeral_t; |
581 | 578 |
582 | 579 |
583 extern ngx_http_header_t ngx_http_headers_in[]; | 580 extern ngx_http_header_t ngx_http_headers_in[]; |
584 extern ngx_http_header_out_t ngx_http_headers_out[]; | 581 extern ngx_http_header_out_t ngx_http_headers_out[]; |