aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/treesocket1.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-09-19 11:07:42 +0000
committerGravatar brain2008-09-19 11:07:42 +0000
commit14539c29d6fa8cd4106d799941ef24f7f3a14665 (patch)
treeddf796e57d08b61198f357b02e68bcc632608560 /src/modules/m_spanningtree/treesocket1.cpp
parentDon't check E:Lines when enforcing Q:Lines on connected users. Thanks MacGyver. (diff)
downloadinspircd++-14539c29d6fa8cd4106d799941ef24f7f3a14665.tar.gz
inspircd++-14539c29d6fa8cd4106d799941ef24f7f3a14665.tar.bz2
inspircd++-14539c29d6fa8cd4106d799941ef24f7f3a14665.zip
inbound sockets need a timeout, too. 30 secs should be pleanty
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10560 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/treesocket1.cpp')
-rw-r--r--src/modules/m_spanningtree/treesocket1.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp
index 09c3158cc..0687aa06b 100644
--- a/src/modules/m_spanningtree/treesocket1.cpp
+++ b/src/modules/m_spanningtree/treesocket1.cpp
@@ -43,7 +43,7 @@ TreeSocket::TreeSocket(SpanningTreeUtilities* Util, InspIRCd* SI, std::string sh
theirchallenge.clear();
ourchallenge.clear();
this->LinkState = CONNECTING;
- Utils->timeoutlist[this] = std::pair<std::string, int>(ServerName,maxtime);
+ Utils->timeoutlist[this] = std::pair<std::string, int>(ServerName, maxtime);
if (Hook)
BufferedSocketHookRequest(this, (Module*)Utils->Creator, Hook).Send();
}
@@ -66,6 +66,9 @@ TreeSocket::TreeSocket(SpanningTreeUtilities* Util, InspIRCd* SI, int newfd, cha
BufferedSocketHookRequest(this, (Module*)Utils->Creator, Hook).Send();
Instance->Timers->AddTimer(new HandshakeTimer(Instance, this, &(Utils->LinkBlocks[0]), this->Utils, 1));
+
+ /* Fix by Brain - inbound sockets need a timeout, too. 30 secs should be pleanty */
+ Utils->timeoutlist[this] = std::pair<std::string, int>("<unknown>", 30);
}
ServerState TreeSocket::GetLinkState()