From c7c29d03e204473f82cdf2f33f8d24b83b61ed63 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 3 Feb 2010 21:57:18 +0000 Subject: Split servers if they try to send infinite garbage without a newline git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12369 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/treesocket1.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index 4a1a27ba0..23d1e46cd 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -233,5 +233,7 @@ void TreeSocket::OnDataReady() if (!getError().empty()) break; } + if (getError().empty() && recvq.length() > 4096) + SendError("RecvQ overrun (line too long)"); Utils->Creator->loopCall = false; } -- cgit v1.2.3