]> git.kaiwu.me - 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>
Fri, 17 Oct 2025 14:38:53 +0000 (16:38 +0200)
commit922a1d4e3ac208283e8be5a488cb5d8f64a25bf4
tree4208ef58d616f0a390d61520eea8f7a9f9f5cc79
parentadf6a167a4f7bef7c06fce89afe8f83d61108fe4
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