From 26d86d5bcc9c774a0dd7fee35879e40de0aaacc9 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 10 Jan 2006 21:34:03 +0000 Subject: Fixed to not bother pinging an active server git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2767 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index 5fd6bc5af..e8b761543 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1810,6 +1810,14 @@ class TreeSocket : public InspSocket if (line == "") return true; Srv->Log(DEBUG,"IN: "+line); + + /* Fix by brain: + * When there is activity on the socket, reset the ping counter so + * that we're not wasting bandwidth pinging an active server. + */ + this->SetNextPingTime(curtime + 300); + this->SetPingFlag(); + std::deque params; this->Split(line,true,params); std::string command = ""; -- cgit v1.2.3