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:
parent
8710ea2686
commit
e14d2b8115
@ -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
|
||||
|
@ -597,8 +597,16 @@ retryable_socket_connect_error (int err)
|
||||
)
|
||||
return 0;
|
||||
|
||||
if (err == ECONNREFUSED && !opt.retry_connrefused)
|
||||
return 0;
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user