mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-21 17:00:24 -05:00
MINOR: contrib: add support for heartbeat control messages.
Nothing really complicated: add a new control message type for such heartbeat messages.
This commit is contained in:
parent
9536ad707f
commit
200f8fc9c2
1 changed files with 3 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ enum {
|
|||
PEER_MSG_CTRL_RESYNCFINISHED,
|
||||
PEER_MSG_CTRL_RESYNCPARTIAL,
|
||||
PEER_MSG_CTRL_RESYNCCONFIRM,
|
||||
PEER_MSG_CTRL_HEARTBEAT,
|
||||
};
|
||||
|
||||
/* Error messages */
|
||||
|
|
@ -533,6 +534,8 @@ static const char *control_msg_type_str_from_byte(guint8 c)
|
|||
return "resync. partial";
|
||||
case PEER_MSG_CTRL_RESYNCCONFIRM:
|
||||
return "resync. confirm";
|
||||
case PEER_MSG_CTRL_HEARTBEAT:
|
||||
return "heartbeat";
|
||||
default:
|
||||
return "Unknown";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue