]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix high-bandwidth stuff with inspsocket+ssl, and eagain
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 22 Mar 2007 20:21:03 +0000 (20:21 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 22 Mar 2007 20:21:03 +0000 (20:21 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6699 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspsocket.cpp

index b9d31845fb33d958fc86ab7b53e019c51d1513a5..72b210134900c86dbb2b7c08e3de403f1436ae6f 100644 (file)
@@ -472,7 +472,7 @@ bool InspSocket::FlushWriteBuffer()
                                        int result = Instance->Config->GetIOHook(this)->OnRawSocketWrite(this->fd, outbuffer[0].c_str(), outbuffer[0].length());
                                        if (result > 0)
                                        {
-                                               if ((unsigned int)result == outbuffer[0].length())
+                                               if ((unsigned int)result >= outbuffer[0].length())
                                                {
                                                        outbuffer.pop_front();
                                                }
@@ -510,7 +510,7 @@ bool InspSocket::FlushWriteBuffer()
                                int result = write(this->fd,outbuffer[0].c_str(),outbuffer[0].length());
                                if (result > 0)
                                {
-                                       if ((unsigned int)result == outbuffer[0].length())
+                                       if ((unsigned int)result >= outbuffer[0].length())
                                        {
                                                /* The whole block was written (usually a line)
                                                 * Pop the block off the front of the queue,