add experimental NAK fallover logic, this is intended for use in situations where excess NAKs from an upstream master can be used to trigger a shutdown of the FNE, intentionally, this requires external scripts or systemd/init system to then restart the process after it automatically shuts down, the intention here is to very heavy handedly force a full state reset of the FNE in a case where it is unable to reconnect properly through other means;
::LogInfoEx(LOG_HOST,"Peer ID %u Master Address %s Master Port %u Enabled %u Encrypted %u NAK Fall Over %u",id,masterAddress.c_str(),masterPort,enabled,encrypted,nakFallOver);
LogError(LOG_PEER,"PEER %u received too many NAKs from master, nakFallOverCount = %u exceeds threshold of %u, falling over (restart)",peerId,m_nakFallOverCount,m_nakFallOverCountThreshold);
g_killed=true;
}
}
returnfalse;// return false to perform default handling of the NAK
returnfalse;// return false to perform default handling of the NAK