MINOR: peers: Add debugging information to "show peers".
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 7 Nov 2019 14:22:33 +0000 (15:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2019 13:48:28 +0000 (14:48 +0100)
commitec1c10b8391b5d1b54de2e95f9c170c9016fe680
tree4251eca2567860e533de47ea33150bf7f017a99d
parent33cab3c0eba13d125242a8d1a5696f3f47ea1e32
MINOR: peers: Add debugging information to "show peers".

This patch adds three counters to help in debugging peers protocol issues
to "peer" struct:
->no_hbt counts the number of reconnection period without receiving heartbeat
->new_conn counts the number of reconnections after ->reconnect timeout expirations.
->proto_err counts the number of protocol errors.
include/types/peers.h
src/peers.c