mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-06-17 19:20:53 +00:00
heartbeat timeout 5s -> 500ms
This commit is contained in:
@@ -75,8 +75,9 @@ std::string RunPromise(const std::string& host, const std::string& target, const
|
|||||||
|
|
||||||
if (T.substr(0, 2) != "20") {
|
if (T.substr(0, 2) != "20") {
|
||||||
//Backend system refused server startup!
|
//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);
|
T = RunPromise("backup1.beammp.com", "/heartbeatv2", {}, R);
|
||||||
|
// TODO backup2 + HTTP flag (no TSL)
|
||||||
if (T.substr(0, 2) != "20") {
|
if (T.substr(0, 2) != "20") {
|
||||||
warn("Backend system refused server! Server might not show in the public list");
|
warn("Backend system refused server! Server might not show in the public list");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user