summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspsocket.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index 6987d5ccd..941063718 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -390,6 +390,15 @@ bool InspSocket::FlushWriteBuffer()
this->Close();
return true;
}
+ else if (result == 0)
+ {
+ this->Instance->Log(DEBUG,"Write error on socket: EOF");
+ this->OnError(I_ERR_WRITE);
+ this->state = I_ERROR;
+ this->Instance->SE->DelFd(this);
+ this->Close();
+ return true;
+ }
}
catch (ModuleException& modexcept)
{