summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspsocket.cpp4
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,