BUG/MINOR: peers: Possible unexpected peer seesion reset after collisions.
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 14 Oct 2020 09:50:26 +0000 (11:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Oct 2020 07:57:13 +0000 (09:57 +0200)
commit910239887e1c9e4ed816ece0a84448b4a8793b46
treef12fe7abc357d357868131db6bd87aebe04db0b7
parentec879982c223757d9c192ee7ea20deb1c890267e
BUG/MINOR: peers: Possible unexpected peer seesion reset after collisions.

During a peers session collision (two peer sessions opened on both side) we must
mark the peer the session of which will be shutdown as alive, if not ->reconnect
timer will be set with a wrong value if the synchro task expires after the peer
has been reconnected. This possibly leads to unexpected deconnections during handshakes.
Furthermore, this patch cancels any heartbeat tranmimission when a reconnection
is prepared.

(cherry picked from commit 6e1a9c57c938360e95f445e800f0d22782bb6c22)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/peers.c