1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Make retryable_socket_connect_error return 0 on ENETUNREACH and

EHOSTUNREACH.
This commit is contained in:
hniksic 2005-04-24 10:13:42 -07:00
parent 8710ea2686
commit e14d2b8115
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-04-24 Hrvoje Niksic <hniksic@xemacs.org>
* connect.c (retryable_socket_connect_error): Return 0 for
ENETUNREACH and EHOSTUNREACH.
2005-04-23 Hrvoje Niksic <hniksic@xemacs.org>
* cmpt.c: Reenable the memmove implementation for systems that

View File

@ -597,7 +597,15 @@ retryable_socket_connect_error (int err)
)
return 0;
if (err == ECONNREFUSED && !opt.retry_connrefused)
if (!opt.retry_connrefused)
if (err == ECONNREFUSED
#ifdef ENETUNREACH
|| err == ENETUNREACH /* network is unreachable */
#endif
#ifdef EHOSTUNREACH
|| err == EHOSTUNREACH /* host is unreachable */
#endif
)
return 0;
return 1;