]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: peers: "peer alive" flag not reset when deconnecting.
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 20 Nov 2019 10:17:30 +0000 (11:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Nov 2019 12:38:13 +0000 (13:38 +0100)
commit3585cab22174baea6367526e79585f6115c8b3d5
treee3e04a700f09a1075a90fbb79d04fa4216e6a737
parent677e2f2c35444f4eda93c363946ba473ddc16a88
BUG/MINOR: peers: "peer alive" flag not reset when deconnecting.

The peer flags (->flags member of peer struct) are reset by __peer_session_deinit()
function. PEER_F_ALIVE flag which is used by the heartbeat part of the peer protocol
to mark a peer as being alive was not reset by this function. This simple patch adds
add the statement to this.

Note that, at this time, there was no identified issue due to this missing reset.

Must be backported to 2.0.
src/peers.c