]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mpm_event: Use APR_POLLEXCL when available to prevent thundering hurd.
authorYann Ylavic <ylavic@apache.org>
Thu, 27 Jan 2022 15:06:55 +0000 (15:06 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 27 Jan 2022 15:06:55 +0000 (15:06 +0000)
commit4afce44d844474ee7190c1c5e0eadb0d91483dcf
treed7266ad482df06413bca33e24569c1cd18b0cb5b
parent3e0035d1892b7e8506cc2f53921282aaab8e4c23
mpm_event: Use APR_POLLEXCL when available to prevent thundering hurd.

If APR_POLLEXCL is available, use it to prevent the thundering
herd issue. The listening sockets are potentially polled by all
the children at the same time, when new connections arrive this
avoids all of them to be woken up while most would get EAGAIN
on accept().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897551 13f79535-47bb-0310-9956-ffa450edef68
server/mpm/event/event.c