feat: update domain connection retry logic to improve handshake request handling
This commit is contained in:
@@ -213,8 +213,9 @@ void OverteClient::poll() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Request domain list periodically if not connected
|
// Request domain list periodically if not connected
|
||||||
if (!m_domainConnected && std::chrono::duration_cast<std::chrono::seconds>(now - lastDomainList).count() >= 2) {
|
if (!m_domainConnected && std::chrono::duration_cast<std::chrono::seconds>(now - lastDomainList).count() >= 3) {
|
||||||
std::cout << "[OverteClient] Retrying domain list request..." << std::endl;
|
std::cout << "[OverteClient] Retrying domain handshake..." << std::endl;
|
||||||
|
sendDomainConnectRequest();
|
||||||
sendDomainListRequest();
|
sendDomainListRequest();
|
||||||
lastDomainList = now;
|
lastDomainList = now;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user