From fc1ea66599b066ec48b59854d59fdaf6fd29d4d0 Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Sat, 18 Apr 2020 02:58:22 -0300 Subject: [PATCH] Reduce heartbeat frequency to 15s 3s was excessive especially considering that the default heartbeat timeout is set to 30s. --- lokimq/lokimq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lokimq/lokimq.h b/lokimq/lokimq.h index 656a1a5..061364b 100644 --- a/lokimq/lokimq.h +++ b/lokimq/lokimq.h @@ -232,7 +232,7 @@ public: * Only new connections created after changing this are affected, so if changing it is * recommended to set it before calling `start()`. */ - std::chrono::milliseconds CONN_HEARTBEAT = 3s; + std::chrono::milliseconds CONN_HEARTBEAT = 15s; /** When CONN_HEARTBEAT is enabled, this sets how long we wait for a reply on a socket before * considering the socket to have died and closing it.