]> 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>
Tue, 21 Oct 2025 13:04:18 +0000 (15:04 +0200)
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 7d955008f46053ffe976fffa3ddabb0e67512672..e20991eddd5b4b8f76675229a5ccb943e0f80f79 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;