]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: poller: update_fd_polling: wake a random other thread
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Jun 2022 16:31:08 +0000 (18:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:15:14 +0000 (19:15 +0200)
commit555c192d14ce0bf3caefc0b1b38959e6b6f858a8
tree7fe0ddcfe691412c060639cf44a15da8184d73f3
parent962e5ba72bc500d7d6e263c43a43da2069391214
MINOR: poller: update_fd_polling: wake a random other thread

When enabling an FD that's only bound to another thread, instead of
always picking the first one, let's pick a random one. This is rarely
used (enabling a frontend, or session rate-limiting period ending),
and has greater chances of avoiding that some obscure corner cases
could degenerate into a poorly distributed load.
src/fd.c