From d216274f9eb26921d18c5697c6bb01dc880491ea Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 22 Apr 2002 13:13:13 +0000 Subject: Catch 'Connection reset by peer' socket error codes. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IsoSurfacer/trunk@58 bfcf8e34-485d-4d46-a995-1fd6fa6fb178 --- src/Sockets.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Sockets.c b/src/Sockets.c index c319e3d..7b3a7f1 100644 --- a/src/Sockets.c +++ b/src/Sockets.c @@ -591,6 +591,9 @@ int Iso_Write(isoSocket *connection, const char *buffer, size_t count) case EBADF : /* An invalid descriptor was specified. */ #ifdef ENOTSOCK case ENOTSOCK : /* The filedescriptor is not a socket. */ +#endif +#ifdef ECONNRESET + case ECONNRESET : /* Connection reset by peer */ #endif case EPIPE : /* The local end has been shut down on a connection oriented socket. In this case the process will also * receive a SIGPIPE unless MSG_NOSIGNAL is set. -- cgit v1.2.3