Mercurial > hg > nginx
comparison src/core/ngx_connection.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 | 3a72b1805c52 |
children | 457ec43dd8d5 |
comparison
equal
deleted
inserted
replaced
5979:b2920b517490 | 5980:ccad84a174e0 |
---|---|
179 #if (NGX_HAVE_IOCP) | 179 #if (NGX_HAVE_IOCP) |
180 unsigned accept_context_updated:1; | 180 unsigned accept_context_updated:1; |
181 #endif | 181 #endif |
182 | 182 |
183 #if (NGX_HAVE_AIO_SENDFILE) | 183 #if (NGX_HAVE_AIO_SENDFILE) |
184 unsigned aio_sendfile:1; | |
185 unsigned busy_count:2; | 184 unsigned busy_count:2; |
186 ngx_buf_t *busy_sendfile; | |
187 #endif | 185 #endif |
188 | 186 |
189 #if (NGX_THREADS) | 187 #if (NGX_THREADS) |
190 ngx_atomic_t lock; | 188 ngx_atomic_t lock; |
191 #endif | 189 #endif |