]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: peers: No longer ack updates during a full resync
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Sep 2025 13:49:44 +0000 (15:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 30 Oct 2025 13:17:49 +0000 (14:17 +0100)
ACK messages received by a peer sending updates during a full resync are
ignored. So, on the other side, there is no reason to still send these ACK
messages. Let's skip them.

src/peers.c

index 7cab9371163cdb1c5f1f7609f229aca49b382448..1e29fbc5acb8d40a6edc388ddee84c816b39585a 100644 (file)
@@ -1821,6 +1821,9 @@ int peer_treat_updatemsg(struct appctx *appctx, struct peer *p, int updt, int ex
                st->last_get++;
        }
 
+       if (p->learnstate == PEER_LR_ST_PROCESSING)
+               st->last_acked = st->last_get;
+
        if (exp) {
                size_t expire_sz = sizeof expire;