From 1bc59c5193e08253df19971bfae0bcb0f24bc590 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 21 Oct 2007 19:40:44 +0000 Subject: Minor tweak to avoid a storm of redundant read events. This isnt the fix, i dont think, but its needed anyway git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8275 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 29a7f6c73..dbd38563c 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -198,8 +198,6 @@ class IdentRequestSocket : public EventHandler void ReadResponse() { - ServerInstance->Log(DEBUG,"ReadResponse()"); - // We don't really need to buffer for incomplete replies here, since IDENT replies are // extremely short - there is *no* sane reason it'd be in more than one packet @@ -209,10 +207,13 @@ class IdentRequestSocket : public EventHandler /* Cant possibly be a valid response shorter than 3 chars */ if (recvresult < 3) { + Close(); done = true; return; } + ServerInstance->Log(DEBUG,"ReadResponse()"); + irc::sepstream sep(ibuf, ':'); std::string token; for (int i = 0; sep.GetToken(token); i++) -- cgit v1.3.1-10-gc9f91