Klaus Demo nginx / e17cc98
dynamic accept threshold Igor Sysoev 13 years ago
2 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
109109 #define ngx_inline inline
110110 #endif
111111
112 #define NGX_ACCEPT_THRESHOLD 100
113
114112 #ifndef INADDR_NONE /* Solaris */
115113 #define INADDR_NONE ((unsigned int) -1)
116114 #endif
8181 ngx_atomic_fetch_add(ngx_stat_accepted, 1);
8282 #endif
8383
84 ngx_accept_disabled = NGX_ACCEPT_THRESHOLD
84 ngx_accept_disabled = ngx_cycle->connection_n / 8
8585 - ngx_cycle->free_connection_n;
8686
8787 c = ngx_get_connection(s, ev->log);