]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: peers: Use a peer flag to block the applet waiting ack of the sync task
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Apr 2024 08:41:07 +0000 (10:41 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 16:29:57 +0000 (18:29 +0200)
commit12014587fa5685022eff8d81f8d5f966d28f17b8
tree2748fd6b28cef4bf08732b046bbab9d268ef164e
parentf80f1635ecdcd998460345c726949a779ccbfb6e
MINOR: peers: Use a peer flag to block the applet waiting ack of the sync task

Since recent fixes on peers, some changes on a peer must be acknowledged
by the sync task before letting the peer applet processing messages.
Blocking conditions was based on a combination of flags. It was
errorprone. So, this patch introduces PEER_F_WAIT_SYNCTASK_ACK peer flag for
this purpose. This flag is set by the peer when it must wait for an ack from
the sync task. This sync task, on its side, must remove it and wake the peer
up.
src/peers.c