]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEBUG: fd: add a counter of takeovers of an FD since it was last opened
authorWilly Tarreau <w@1wt.eu>
Thu, 30 Jan 2025 14:59:11 +0000 (15:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 30 Jan 2025 18:45:34 +0000 (19:45 +0100)
commit44ac7a7e731537c9388a141b69cff7074afe2376
tree575e896b31df27e31ed4ad5d5e65ce25e8d8bdac
parentb849ee5fa35b7a909869db1dfd19f450f3172034
DEBUG: fd: add a counter of takeovers of an FD since it was last opened

That's essentially in order to help with debugging strange cases like
the occasional epoll issues/races, by keeping a counter of how many
times an FD was taken over since last inserted. The room is available
so let's use it. If it's needed later, this patch can easily be reverted.
The counter is also reported in "show fd" as "tkov".
include/haproxy/fd-t.h
include/haproxy/fd.h
src/cli.c
src/fd.c