fix for CONNRESET with disconnected udp socket issue

This commit is contained in:
Jeff Hill
2002-02-07 19:00:10 +00:00
parent f2afd7657a
commit 0b2c21767a
2 changed files with 18 additions and 18 deletions
+9 -9
View File
@@ -535,15 +535,15 @@ void ca_repeater ()
&from.sa, &from_size );
if ( size < 0 ) {
int errnoCpy = SOCKERRNO;
# ifdef linux
/*
* Avoid spurious ECONNREFUSED bug
* in linux
*/
if ( errnoCpy == SOCK_ECONNREFUSED ) {
continue;
}
# endif
// Avoid spurious ECONNREFUSED bug in linux
if ( errnoCpy == SOCK_ECONNREFUSED ) {
continue;
}
// Avoid ECONNRESET from connected socket
// in windows
if ( errnoCpy == SOCK_ECONNRESET ) {
continue;
}
fprintf ( stderr, "CA Repeater: unexpected UDP recv err: %s\n",
SOCKERRSTR (errnoCpy) );
continue;