Restart ZMQ connection if it looks dead

This commit is contained in:
SChernykh
2022-05-11 11:44:42 +02:00
parent c3c326c680
commit 6c6ef1c1b8
4 changed files with 48 additions and 10 deletions
+1
View File
@@ -1029,6 +1029,7 @@ void P2PServer::check_zmq()
if (cur_time >= last_active + 300) {
const uint64_t dt = static_cast<uint64_t>(cur_time - last_active);
LOGERR(1, "no ZMQ messages received from monerod in the last " << dt << " seconds, check your monerod/p2pool/network/firewall setup!!!");
m_pool->restart_zmq();
}
}