From 34e5e5432b4a38cabf1f0b9870d6f4e916d66730 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 7 Feb 2002 18:49:16 +0000 Subject: [PATCH] workaround for CONNRESET error from disconnected socket on windows --- src/ca/iocinf.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/ca/iocinf.c b/src/ca/iocinf.c index 610338445..e09b943d1 100644 --- a/src/ca/iocinf.c +++ b/src/ca/iocinf.c @@ -48,6 +48,9 @@ /* kernels that support multicast */ /* * $Log$ + * Revision 1.84.4.2 2001/03/06 00:32:45 jhill + * fixed R3.13 for Linux's new socklen_t + * * Revision 1.84.4.1 1999/07/15 20:50:23 jhill * fixed infinite loop when ENOBUFS returned by sendto() * @@ -1291,6 +1294,16 @@ LOCAL void udp_recv_msg(struct ioc_in_use *piiu) UNLOCK; return; } +# endif +# ifdef _WIN32 + /* + * Avoid ECONNRESET from disconnected socket bug + * in win32 + */ + if (SOCKERRNO==SOCK_ECONNRESET) { + UNLOCK; + return; + } # endif ca_printf("Unexpected UDP failure %s\n", SOCKERRSTR); }