workaround for CONNRESET error from disconnected socket on windows

This commit is contained in:
Jeff Hill
2002-02-07 18:49:16 +00:00
parent cc5791cbbd
commit 34e5e5432b
+13
View File
@@ -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);
}