]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: peers: Missing initializations after peer session shutdown.
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 27 Mar 2019 13:32:39 +0000 (14:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Mar 2019 14:16:25 +0000 (15:16 +0100)
commitb7405c1c5071bb17154a625fbc5b46da5c6a9cf4
treecc99dbdc83267f1b38c4dc08e194d5aa90fc6670
parentad25c2658e1ebdd07743d0faa1f8ad3094897a61
BUG/MINOR: peers: Missing initializations after peer session shutdown.

This patch fixes a bug introduced by 045e0d4 commit where it was really a bad
idea to reset the peer applet context before shutting down the underlying
session. This had as side effect to cancel the re-initializations done by
peer_session_release(), especially prevented this function from re-initializing
the current table pointer which is there to force annoucement of stick-table
definitions on when reconnecting. Consequently the peers could send stick-table
update messages without a first stick-table definition message. As this is
forbidden, this leaded the remote peers to close the sessions.
src/peers.c