Re: Set IPV6_V6ONLY socket option when -6 switch is used.

Hrvoje Niksic <[email protected]>
Newsgroups gmane.comp.web.wget.patches
Message-ID <[email protected]>
Hrvoje Niksic <[email protected]> writes:

> One problem with this patch is that it has a pretty ugly failure mode:
>
> $ wget -6 http://\[::ffff:127.0.0.1\]
> --12:53:36--  http://[::ffff:127.0.0.1]/
>            => `index.html'
> Connecting to ::ffff:127.0.0.1:80... failed: Network is unreachable.
> Retrying.
> ...
>
> And so repeated for 19 more times.

I've now fixed this by making retryable_socket_connect_error return 0
for ENETUNREACH and for EHOSTUNREACH.  This makes at least as much
sense as not retrying on ECONNREFUSED, and can be overridden using
--retry-connrefused.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.