BUG/MEDIUM: peers: reset starting point if peers appears longly disconnected
authorEmeric Brun <ebrun@haproxy.com>
Tue, 23 Feb 2021 15:50:53 +0000 (16:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 28 Apr 2021 12:23:10 +0000 (14:23 +0200)
commitd9729da98262f2136ad4eac44c3ec2f710cb4a49
tree03085d04ececbb79b341f0b9148c1b18a327c874
parentb0d60bed36cfbfead5a35e6a9520e8d5e9345a7f
BUG/MEDIUM: peers: reset starting point if peers appears longly disconnected

If two peers are disconnected and during this period they continue to
process a large amount of local updates, after a reconnection they
may take a long time before restarting to push their updates. because
the last pushed update would appear internally in futur.

This patch fix this resetting the cursor on acked updates at the maximum
point considered in the past if it appears in futur but it means we
may lost some updates. A clean fix would be to update the protocol to
be able to signal a remote peer that is was not updated for a too long
period and needs a full resync but this is not yet supported by the
protocol.

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