From 78fb81004e962a6e207835d5c6c757c2b32342b3 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 30 Mar 2021 16:27:25 +0200 Subject: [PATCH] change timeout to 60s instead of 10, might fix the timeout mass kick --- src/TPPSMonitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TPPSMonitor.cpp b/src/TPPSMonitor.cpp index 4a32208..d286677 100644 --- a/src/TPPSMonitor.cpp +++ b/src/TPPSMonitor.cpp @@ -41,7 +41,7 @@ void TPPSMonitor::operator()() { c->UpdatePingTime(); } // kick on "no ping" - if (c->SecondsSinceLastPing() > 10 && c->IsSynced() && !c->IsSyncing()) { + if (c->SecondsSinceLastPing() > 60 && c->IsSynced() && !c->IsSyncing()) { debug("client " + std::string("(") + std::to_string(c->GetID()) + ")" + c->GetName() + " timing out: " + std::to_string(c->SecondsSinceLastPing()) + ", pps: " + Application::PPS()); TimedOutClients.push_back(c); } @@ -49,7 +49,7 @@ void TPPSMonitor::operator()() { return true; }); for (auto& ClientToKick : TimedOutClients) { - Network().ClientKick(*ClientToKick, "Timeout (no ping for >10 seconds)"); + Network().ClientKick(*ClientToKick, "Timeout (no ping for >60 seconds)"); } TimedOutClients.clear(); if (C == 0 || mInternalPPS == 0) {