1
0

induce delay on polling thread

This commit is contained in:
Emagi 2024-12-02 19:43:22 -05:00
parent 8a163875fb
commit 140d58d0da

View File

@ -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() : "??"); 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; interval = 0;
} }
std::this_thread::sleep_for(std::chrono::milliseconds(1)); std::this_thread::sleep_for(std::chrono::milliseconds(50));
} }
} }
} }