From ec0987e5c137b749b090b62d8e366010a5030fc6 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 2 Feb 2021 01:16:39 +0100 Subject: [PATCH] heartbeat timeout 5s -> 500ms --- src/Init/Heartbeat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Init/Heartbeat.cpp b/src/Init/Heartbeat.cpp index 8177ed0..cf94945 100644 --- a/src/Init/Heartbeat.cpp +++ b/src/Init/Heartbeat.cpp @@ -75,8 +75,9 @@ std::string RunPromise(const std::string& host, const std::string& target, const if (T.substr(0, 2) != "20") { //Backend system refused server startup! - std::this_thread::sleep_for(std::chrono::seconds(5)); + std::this_thread::sleep_for(std::chrono::milliseconds(500)); T = RunPromise("backup1.beammp.com", "/heartbeatv2", {}, R); + // TODO backup2 + HTTP flag (no TSL) if (T.substr(0, 2) != "20") { warn("Backend system refused server! Server might not show in the public list"); }