]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: epoll: skip reports of stale file descriptors
authorWilly Tarreau <w@1wt.eu>
Thu, 30 Jan 2025 15:32:35 +0000 (16:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Jan 2025 18:45:34 +0000 (19:45 +0100)
commit8235a24782e528b9bf8ca9dd69c0a147556dfcb5
tree6707f8087b7fc7a9183237780294b846f4a39b34
parent5012b6c6d9e2278ae247e3e372765be3c11af86c
MEDIUM: epoll: skip reports of stale file descriptors

Now that we can see that some events are reported for older instances
of a file descriptor, let's skip these ones instead of reporting
dangerous events on them. It might possibly qualify as a bug if it
helps fixing strange issues in certain environments, in which case it
can make sense to backport it along with the following recent patches:

  DEBUG: fd: add a counter of takeovers of an FD since it was last opened
  MINOR: fd: add a generation number to file descriptors
  DEBUG: epoll: store and compare the FD's generation count with reported event
src/ev_epoll.c