BUGFIX: if the host retried the login attempt and set WAITING_LOGIN state, it was possible for the connection to become stuck in an endless limbo state resulting in no connection, resolve this by evaluating the retry interval while in WAITING_LOGIN (login attempts to the FNE should not take over 10 seconds to complete!);

4.31h_maint
Bryan Biedenkapp 8 months ago
parent 4306764819
commit f791f9ae58

@ -194,6 +194,18 @@ void Network::clock(uint32_t ms)
return;
}
// if we are waiting for a login response, check the timeout
if (m_status == NET_STAT_WAITING_LOGIN) {
m_retryTimer.clock(ms);
if (m_retryTimer.isRunning() && m_retryTimer.hasExpired()) {
LogError(LOG_NET, "PEER %u login attempt to the master has timed out, retrying connection", m_peerId);
close();
open();
return;
}
}
// if we aren't enabled -- bail
if (!m_enabled) {
return;

Loading…
Cancel
Save

Powered by TurnKey Linux.