comparison src/http/ngx_http_core_module.h @ 6022:1fdba317ee6d

Added support for offloading read() in thread pools.
author Valentin Bartenev <vbart@nginx.com>
date Sat, 14 Mar 2015 17:37:25 +0300
parents 942283a53c28
children 42d9beeb22db
comparison
equal deleted inserted replaced
6021:117c77b22db1 6022:1fdba317ee6d
10 10
11 11
12 #include <ngx_config.h> 12 #include <ngx_config.h>
13 #include <ngx_core.h> 13 #include <ngx_core.h>
14 #include <ngx_http.h> 14 #include <ngx_http.h>
15
16 #if (NGX_THREADS)
17 #include <ngx_thread_pool.h>
18 #endif
15 19
16 20
17 #define NGX_HTTP_GZIP_PROXIED_OFF 0x0002 21 #define NGX_HTTP_GZIP_PROXIED_OFF 0x0002
18 #define NGX_HTTP_GZIP_PROXIED_EXPIRED 0x0004 22 #define NGX_HTTP_GZIP_PROXIED_EXPIRED 0x0004
19 #define NGX_HTTP_GZIP_PROXIED_NO_CACHE 0x0008 23 #define NGX_HTTP_GZIP_PROXIED_NO_CACHE 0x0008
25 #define NGX_HTTP_GZIP_PROXIED_ANY 0x0200 29 #define NGX_HTTP_GZIP_PROXIED_ANY 0x0200
26 30
27 31
28 #define NGX_HTTP_AIO_OFF 0 32 #define NGX_HTTP_AIO_OFF 0
29 #define NGX_HTTP_AIO_ON 1 33 #define NGX_HTTP_AIO_ON 1
34 #define NGX_HTTP_AIO_THREADS 2
30 35
31 36
32 #define NGX_HTTP_SATISFY_ALL 0 37 #define NGX_HTTP_SATISFY_ALL 0
33 #define NGX_HTTP_SATISFY_ANY 1 38 #define NGX_HTTP_SATISFY_ANY 1
34 39
419 #if (NGX_PCRE) 424 #if (NGX_PCRE)
420 ngx_array_t *gzip_disable; /* gzip_disable */ 425 ngx_array_t *gzip_disable; /* gzip_disable */
421 #endif 426 #endif
422 #endif 427 #endif
423 428
429 #if (NGX_THREADS)
430 ngx_thread_pool_t *thread_pool;
431 ngx_http_complex_value_t *thread_pool_value;
432 #endif
433
424 #if (NGX_HAVE_OPENAT) 434 #if (NGX_HAVE_OPENAT)
425 ngx_uint_t disable_symlinks; /* disable_symlinks */ 435 ngx_uint_t disable_symlinks; /* disable_symlinks */
426 ngx_http_complex_value_t *disable_symlinks_from; 436 ngx_http_complex_value_t *disable_symlinks_from;
427 #endif 437 #endif
428 438