]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: kqueue/threads: use one kqueue_fd per thread
authorWilly Tarreau <w@1wt.eu>
Fri, 19 Jan 2018 07:56:14 +0000 (08:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Jan 2018 14:50:03 +0000 (15:50 +0100)
commit7a2364d4741eed7d435019690b0f0d12878939b0
treeea2499a84dfb834571ebf3bad207c80a4f3bc9d6
parentd9e7e36c6e5c0f9988a758d81fbe0a8fa8413922
BUG/MEDIUM: kqueue/threads: use one kqueue_fd per thread

This is the same principle as the previous patch (BUG/MEDIUM:
epoll/threads: use one epoll_fd per thread) except that this time it's
for kqueue. We don't want all threads to wake up because of activity on
a single other thread that the other ones are not interested in.

Just like with previous patch, this one shows that the polling state
doesn't need to be changed here and that some simplifications are now
possible. This patch only implements the minimum required for a stable
backport.

This should be backported to 1.8.
src/ev_kqueue.c