BUG/MEDIUM: peers: stop considering ack messages teaching a full resync
authorEmeric Brun <ebrun@haproxy.com>
Thu, 4 Mar 2021 09:27:10 +0000 (10:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Apr 2021 12:23:10 +0000 (14:23 +0200)
commitb0d60bed36cfbfead5a35e6a9520e8d5e9345a7f
tree5130a4e53c87ce95cba8407f3f03a35216788844
parent437e48ad9244eaea63881b6c8a86a380c4eecc23
BUG/MEDIUM: peers: stop considering ack messages teaching a full resync

The re-con cursor was updated receiving any ack message
even if we are pushing a complete resync to a peer. This cursor
is reset at the end of the resync but if the connection is broken
during resync, we could re-start at an unwanted point.

With this patch, the peer stops to consider ack messages pushing
a resync since the resync process has is own acknowlegement and
is always restarted from the beginning in case of broken connection.

This patch should be backported on all supported branches ( >= 1.6 )
src/peers.c