From cf5ec5e341e7c429063d7f988f410d8e87c034f8 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Thu, 9 Jul 2020 13:16:48 +0200 Subject: [PATCH] Send heartbeat every 20s and not 10s --- lib/remote/jsonrpcconnection-heartbeat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote/jsonrpcconnection-heartbeat.cpp b/lib/remote/jsonrpcconnection-heartbeat.cpp index 993877e4e..0644ced85 100644 --- a/lib/remote/jsonrpcconnection-heartbeat.cpp +++ b/lib/remote/jsonrpcconnection-heartbeat.cpp @@ -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) {