From 140d58d0da0c36d67296793445e625792ea5217e Mon Sep 17 00:00:00 2001 From: Emagi Date: Mon, 2 Dec 2024 19:43:22 -0500 Subject: [PATCH] induce delay on polling thread --- source/WorldServer/Web/HTTPSClientPool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/WorldServer/Web/HTTPSClientPool.cpp b/source/WorldServer/Web/HTTPSClientPool.cpp index fe8a0fc..27ac509 100644 --- a/source/WorldServer/Web/HTTPSClientPool.cpp +++ b/source/WorldServer/Web/HTTPSClientPool.cpp @@ -656,10 +656,11 @@ void HTTPSClientPool::pollPeerHealth(const std::string& server, const std::strin } } LogWrite(PEERING__ERROR, 0, "Peering", "%s: ERROR POLLING %s:%s reason: %s", __FUNCTION__, server.c_str(), port.c_str(), e.what() ? e.what() : "??"); + std::this_thread::sleep_for(std::chrono::milliseconds(400)); } interval = 0; } - std::this_thread::sleep_for(std::chrono::milliseconds(1)); + std::this_thread::sleep_for(std::chrono::milliseconds(50)); } } }