diff --git a/DAPNETGateway.cpp b/DAPNETGateway.cpp index a55a5a8..87a93f2 100644 --- a/DAPNETGateway.cpp +++ b/DAPNETGateway.cpp @@ -407,26 +407,16 @@ void CDAPNETGateway::sendMessages() } bool CDAPNETGateway::recover() -/* - Recovery now uses an increasing reconnect holdoff time to prevent - DoS-like reconnect attempts to the core server. -*/ { - const unsigned int backoff[] = {2000u, 4000u, 8000u, 10000u, 20000u, 60000u, 120000u, 240000u, 480000u, 600000u}; - int i=0; for (;;) { m_dapnetNetwork->close(); - CThread::sleep(backoff[i]); - bool ok = m_dapnetNetwork->open(); if (ok) { ok = m_dapnetNetwork->login(); if (ok) return true; } - if (i < 9) - i++; } return false;