]> git.kaiwu.me - nginx.git/commit
Events: fixed balancing between workers with EPOLLEXCLUSIVE.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 29 Dec 2021 22:08:46 +0000 (01:08 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 29 Dec 2021 22:08:46 +0000 (01:08 +0300)
commit96c342e56035a9676180d03b4659d5b05b9c6b07
treeb723bd96fa33a0aeb570cbbfd6121d0b94289193
parent614726621797f1267c41f8a8e488eeefff8bdf7f
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.
src/event/ngx_event.c
src/event/ngx_event.h
src/event/ngx_event_accept.c