aboutsummaryrefslogtreecommitdiffstats
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-04-04 20:05:34 +0000
committerGravatar brain2006-04-04 20:05:34 +0000
commit670052d9de454061d35f55d14234c56187c54445 (patch)
treeb1d8a20eba42f46ea334c0a620885bf6c9322d28 /src/socket.cpp
parentBackport of fixes (diff)
More verbose output on connection refused
backport of previous fix git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3836 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 930772eb5..e3248d5be 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -302,6 +302,7 @@ bool InspSocket::FlushWriteBuffer()
log(DEBUG,"Write error on socket: %s",strerror(errno));
this->OnError(I_ERR_WRITE);
this->state = I_ERROR;
+ this->ClosePending = true;
return true;
}
}
@@ -334,6 +335,7 @@ bool InspSocket::Timeout(time_t current)
this->OnError(I_ERR_TIMEOUT);
timeout = true;
this->state = I_ERROR;
+ this->ClosePending = true;
return true;
}
return this->FlushWriteBuffer();