diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-11 18:18:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-11 18:18:06 +0000 |
commit | 949712aebaffd70e18bbaf45132bd73313becc6d (patch) | |
tree | 2bb6314c5e6374d67ccc2df475e755aa0617f034 /src/socket.cpp | |
parent | aeecb1b83834c91246ab75f4fb98c0e9ed16081a (diff) |
Checks and stuff :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3671 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index a8fdd30b9..a1f322b50 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -244,6 +244,7 @@ char* InspSocket::Read() void InspSocket::MarkAsClosed() { + log(DEBUG,"Marked as closed"); this->ClosePending = true; } @@ -295,10 +296,16 @@ bool InspSocket::FlushWriteBuffer() bool InspSocket::Timeout(time_t current) { if (!socket_ref[this->fd] || !ServerInstance->SE->HasFd(this->fd)) + { + log(DEBUG,"No FD or socket ref"); return false; + } if (this->ClosePending) + { + log(DEBUG,"Close is pending"); return true; + } if (((this->state == I_RESOLVING) || (this->state == I_CONNECTING)) && (current > timeout_end)) { |