From 7ed1a9681bfca76e3cc08b51511d36c8c11fe449 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Sat, 14 Mar 2015 17:37:30 +0300 Subject: Added support for offloading Linux sendfile() in thread pools. --- src/core/ngx_connection.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/ngx_connection.h') diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h index 207aea4f5..1867b4cbc 100644 --- a/src/core/ngx_connection.h +++ b/src/core/ngx_connection.h @@ -184,6 +184,10 @@ struct ngx_connection_s { unsigned busy_count:2; #endif +#if (NGX_THREADS) + ngx_thread_task_t *sendfile_task; +#endif + #if (NGX_OLD_THREADS) ngx_atomic_t lock; #endif -- cgit