mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 03:51:14 +00:00
dynamic accept threshold
This commit is contained in:
parent
c9ff5b6dff
commit
e17cc987d3
2 changed files with 1 additions and 3 deletions
|
|
@ -110,8 +110,6 @@ typedef intptr_t ngx_flag_t;
|
|||
#define ngx_inline inline
|
||||
#endif
|
||||
|
||||
#define NGX_ACCEPT_THRESHOLD 100
|
||||
|
||||
#ifndef INADDR_NONE /* Solaris */
|
||||
#define INADDR_NONE ((unsigned int) -1)
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ ngx_event_accept(ngx_event_t *ev)
|
|||
ngx_atomic_fetch_add(ngx_stat_accepted, 1);
|
||||
#endif
|
||||
|
||||
ngx_accept_disabled = NGX_ACCEPT_THRESHOLD
|
||||
ngx_accept_disabled = ngx_cycle->connection_n / 8
|
||||
- ngx_cycle->free_connection_n;
|
||||
|
||||
c = ngx_get_connection(s, ev->log);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue