From 46513e8bd2810d266572f0e0ab47a9d4d27e806b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 30 Oct 2006 18:59:04 +0000 Subject: For users, we now only write when the socketengine says theyre writeable, setting WantWrite after we call userrec::Write(). The old way was to always try and flush the buffer after every read, regardless of wether the socket was writeable git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5584 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 4b7e38f3c..3c882f867 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1430,6 +1430,7 @@ void userrec::Write(std::string text) this->AddWriteBuf(text); } ServerInstance->stats->statsSent += text.length(); + this->ServerInstance->SE->WantWrite(this); } /** Write() -- cgit v1.2.3