mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 23:56:57 +02: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
@ -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 New Issue
Block a user