summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-10 21:34:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-10 21:34:03 +0000
commit26d86d5bcc9c774a0dd7fee35879e40de0aaacc9 (patch)
tree08d8ebc83cf29980be9257a034fc6585a616e33a
parent764a2abfc5fe30050471d82d8012da9fdf58aa88 (diff)
Fixed to not bother pinging an active server
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2767 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_spanningtree.cpp8
1 files changed, 8 insertions, 0 deletions
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<std::string> params;
this->Split(line,true,params);
std::string command = "";