Merge pull request #8102 from Icinga/bugfix/send-heartbeat-less-often-8098

Send heartbeat every 20s and not 10s
This commit is contained in:
Noah Hilverling 2020-07-21 09:46:33 +02:00 committed by GitHub
commit 9f57e895f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ void JsonRpcConnection::HandleAndWriteHeartbeats(boost::asio::yield_context yc)
boost::system::error_code ec;
for (;;) {
m_HeartbeatTimer.expires_from_now(boost::posix_time::seconds(10));
m_HeartbeatTimer.expires_from_now(boost::posix_time::seconds(20));
m_HeartbeatTimer.async_wait(yc[ec]);
if (m_ShuttingDown) {