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)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Oct 2020 15:45:58 +0000 (17:45 +0200)
commitbaeb919177eb717408aa81c9fd053017fa747266
tree497f37838bd852ffd994c9abb72e4a362486dfcb
parent0aa5a5b1750638dc7d127023e516d1e24ca44317
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.
src/peers.c