Mercurial > hg > nginx
diff src/event/ngx_event.h @ 7992:e2d07e4ec636
Events: fixed balancing between workers with EPOLLEXCLUSIVE.
Linux with EPOLLEXCLUSIVE usually notifies only the process which was first
to add the listening socket to the epoll instance. As a result most of the
connections are handled by the first worker process (ticket #2285). To fix
this, we re-add the socket periodically, so other workers will get a chance
to accept connections.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 30 Dec 2021 01:08:46 +0300 |
parents | ec2e6893caaa |
children | 8206ecdcd837 7c2adf237091 |
line wrap: on
line diff
--- a/src/event/ngx_event.h Wed Dec 29 22:59:53 2021 +0300 +++ b/src/event/ngx_event.h Thu Dec 30 01:08:46 2021 +0300 @@ -462,6 +462,7 @@ extern ngx_uint_t ngx_accept_mutex_held; extern ngx_msec_t ngx_accept_mutex_delay; extern ngx_int_t ngx_accept_disabled; +extern ngx_uint_t ngx_use_exclusive_accept; #if (NGX_STAT_STUB)