]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: peers: Save date of the last update to wake the peer applet
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Oct 2025 12:02:05 +0000 (14:02 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Oct 2025 13:11:24 +0000 (15:11 +0200)
commit40c46635801d5d7f72d7e7d5e33a2e1097632876
tree13b972acdf667d97994c9c07f4ac1e7f3ef41447
parent640dea2ffee750dd1169b4bfd4fda97ab51ae09b
MEDIUM: peers: Save date of the last update to wake the peer applet

Instead of looking for new updates in each updates lists to wake a peer
applet up, we now only detect that some updates should have been inserted by
comparing the date of the last update inserted in the list and the last
update sent to the peer.

It is not 100% accurrate of course. Some extra wakeups may be observed. But
this should not lead to any spinning loop because the operation is performed
by the sync task. This task is woken up when a timeout is fired or when an
update was inserted. However, this saves several loops on the updates lists.
include/haproxy/peers-t.h
include/haproxy/stick_table-t.h
src/peers.c
src/stick_table.c