commit | 24669b398f92bcebb9adfea245d3a05bcaf092fb | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Thu Dec 30 01:08:46 2021 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Thu Dec 30 01:08:46 2021 +0300 |
tree | b723bd96fa33a0aeb570cbbfd6121d0b94289193 | |
parent | 10ebf4fd91bdde2c2f774b9cd8f75aa2d9984a7c [diff] |
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.