]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: peers: Don't use resync timer when local resync is in progress
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Aug 2022 16:40:46 +0000 (18:40 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Aug 2022 09:38:02 +0000 (11:38 +0200)
commit19a82b94953ae06839b34df2fc1e57847bef7c50
tree0c5d01edd0f7e47949aa84f7a75d14d35ed6212a
parent13db4bdbc6e60bb54f7583ca76e7d71c97cca96a
BUG/MEDIUM: peers: Don't use resync timer when local resync is in progress

When a worker is stopped, the resync timer is used to limit in time the
connection stage to the new worker to perform the local resync. However,
this timer must be stopped when the resync is in progress and it must be
re-armed if the resync is interrupted (for instance because another
reload). Otherwise, if the resync is a bit long, an old worker may be killed
too early.

This bug was introduce by the commit 160fff665 ("BUG/MEDIUM: peers: limit
reconnect attempts of the old process on reload"). It must be backported as
far as 2.0.
src/peers.c