From cfd8d3f88de963398f68031210080d0ffac855fb Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 11 May 2025 19:36:46 +0100 Subject: [PATCH] Make PING skip the flood queue just like PONG does It's unlikely server has nothing to send at all for all the other messages ZNC is sending and that there's nothing happening server-side too. But PING at least is guaranteed to give the response, so ZNC shouldn't disconnect too eagerly --- src/IRCNetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCNetwork.cpp b/src/IRCNetwork.cpp index 2f097ce2..469f69bf 100644 --- a/src/IRCNetwork.cpp +++ b/src/IRCNetwork.cpp @@ -51,7 +51,7 @@ class CIRCNetworkPingTimer : public CCron { if (pIRCSock && pIRCSock->GetTimeSinceLastDataTransaction() >= uFrequency) { - pIRCSock->PutIRC("PING :ZNC"); + pIRCSock->PutIRCQuick("PING :ZNC"); } const vector& vClients = m_pNetwork->GetClients();