Ticket #30 (closed defect: fixed)
connectTo does not try all addresses
|Reported by:||feuerbach||Owned by:|
There is recently reported bug in connectTo (http://email@example.com/msg76549.html) which is caused by not trying to connect to all the addresses returned by getAddrInfo. This may be an a problem when the first address returned is IPv6 but service is accessible only by IPv4 (or vice versa).
Also see discussion of the issue by Ulrich Drepper here: http://people.redhat.com/drepper/userapi-ipv6.html
I'm attaching a patch with a fix.
On a related note, although not directly related to IPv6, it might be also useful to try to connect to all the addresses in gethostbyname-version of connectTo. (And also for the sake of consistency between different implementations of connectTo.)