]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pollers: Drop fd events after a takeover to another tgid.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 25 Feb 2025 17:28:45 +0000 (18:28 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 26 Feb 2025 12:00:18 +0000 (13:00 +0100)
commitd31b1650aef4cd50177b450259c383d31f0c6358
tree911ae9b97e4c57c46fd4203b35ae61f776802523
parentc36aae2af10b0dbd71fcc9b37bb771525ed48330
MEDIUM: pollers: Drop fd events after a takeover to another tgid.

In pollers that support it, provide the generation number in addition to
the fd, and, when an event happened, if the generation number is the
same, but the tgid changed, then assumed the fd was taken over by a
thread from another thread group, and just delete the event from the
current thread's poller, as we no longer want to hear about it.
src/ev_epoll.c
src/ev_evports.c
src/ev_kqueue.c