]> git.ipfire.org Git - thirdparty/kea.git/commit
[#1959] Changes in heartbeat and lease updates
authorMarcin Siodelski <marcin@isc.org>
Tue, 27 Jul 2021 15:43:16 +0000 (17:43 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 22 Sep 2021 06:09:39 +0000 (08:09 +0200)
commitc1224369b94c95b568e09dc828f6368241f63be4
tree65528a3b15c391773c8a287544c29675693e9165
parent24c21f627a3aea326884e4aa7e00ccc5000b8dae
[#1959] Changes in heartbeat and lease updates

Previously, we'd assume that the communication with the partner is ok
when lease update was sent successfuly. In that case, we'd not send a
heartbeat. Under a heavy load, we could delay heartbeats for a long time.
Sending heartbeats is actually important because the heartbeat response
conveys information about the partner state. We want to have up-to-date
information about partner's state.
src/hooks/dhcp/high_availability/communication_state.cc
src/hooks/dhcp/high_availability/communication_state.h
src/hooks/dhcp/high_availability/ha_service.cc
src/hooks/dhcp/high_availability/tests/ha_service_unittest.cc