X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspsocket.cpp;h=34f4a6201a9e86304f9c9cefa00419b355002022;hb=1552f3918ac0dad7fef9b86b70c0f4a63d4e37a7;hp=6987d5ccd5c929c6c1797ae1a7b8f03ad49bf897;hpb=ed61aa1ed4b7418126bd99c62aa84d44e78b95ba;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 6987d5ccd..34f4a6201 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -2,12 +2,9 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * Written by Craig Edwards, Craig McLure, and others. + * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits + * * This program is free but copyrighted software; see * the file COPYING for details. * @@ -390,6 +387,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) {