diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-22 20:21:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-03-22 20:21:03 +0000 |
commit | 636f6a023fbc44b00113d15ec57463bea8e5e4e2 (patch) | |
tree | d37f76e9d7cbdc5e2ee9d24ff1ad465a2e420620 | |
parent | 70f57afea5e3b3e9a3b58a2f9397b84a6647a167 (diff) |
Fix high-bandwidth stuff with inspsocket+ssl, and eagain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6699 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/inspsocket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index b9d31845f..72b210134 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -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, |