]> Sergey Matveev's repositories - public-inbox.git/commit
listener: use EPOLLEXCLUSIVE for listen sockets
authorEric Wong <e@80x24.org>
Fri, 3 May 2019 10:34:09 +0000 (10:34 +0000)
committerEric Wong <e@80x24.org>
Sun, 5 May 2019 00:22:49 +0000 (00:22 +0000)
commit5aaea61844b92c452c201ce9832e3c5c68c6f84e
tree7afcdd8e62af3d0611bd24d04f7d44fe8faf7487
parentcd50d183273c105a7f08b1875ba6f7a51d9f8e9a
listener: use EPOLLEXCLUSIVE for listen sockets

Since our listen sockets are non-blocking and we may run
multiple httpd|nntpd processes; we need a way to avoid
thundering herds when there are multiple httpd|nntpd worker
processes.

EPOLLEXCLUSIVE was added just for that in Linux 4.5
TODO
lib/PublicInbox/DS.pm
lib/PublicInbox/Listener.pm
lib/PublicInbox/Syscall.pm