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.