https://bugzilla.wikimedia.org/show_bug.cgi?id=70084

--- Comment #1 from Marc A. Pelletier <[email protected]> ---
That's actually behaviour mandated by the standards.  DNS servers must return
both A and AAAA RRs regardless of which protocol you reached it with because
it's entirely possible that you have only IPv4 connectivity to a DNS server yet
only IPv6 to the host; and well-behaved code should always be using IPv6 to
connect if it's available (although /robust/ code should be trying all
addresses before giving up).

ssh actually does that by default though, so it's not obvious to me why that
fails in your case.  Tests I just ran on some random labs instance reveal with
strace that 'git pull' invokes ssh that does exactly what is expected:

connect(3, {sa_family=AF_INET6, sin6_port=htons(29418), inet_pton(AF_INET6,
"2620:0:861:3:208:80:154:81", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0},
28) = -1 ENETUNREACH (Network is unreachable)
connect(3, {sa_family=AF_INET, sin_port=htons(29418),
sin_addr=inet_addr("208.80.154.81")}, 16) = 0

It tries IPv6 first, gets a network unreachable, then tries IPv4 and succeeds.

Could you try the following from a host where you get the error and paste the
results:

strace -f git pull 2>&1 | grep connect

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to