threads / discuss / 27114

Retry on all A/AAAA records

Subject: Retry on all A/AAAA records

## tl;dr

3 messages between Apr 16, 2011 and Apr 19, 2011.

replies: 2people: 3as markdown or json

Jan Engelhardt· Apr 16, 2011, 11:14 UTC · lore

Just now, some git server that is in the DNS rotation seems to have an issue, $ telnet git.eu.kernel.org git Trying 199.6.1.166... Connected to git.eu.kernel.org. Escape character is '^]'. Connection closed by foreign host.

I thought it would be nice if git-fetch would retry the operation on the other DNS records that were returned if the connection breaks.

Junio C Hamano· Apr 19, 2011, 04:22 UTC · re: Jan Engelhardt · lore

Re: Retry on all A/AAAA records

Jan Engelhardt <jengelh@medozas.de> writes:
Show 10 quoted lines
> Just now, some git server that is in the DNS rotation seems to have an 
> issue,
> $ telnet git.eu.kernel.org git
> Trying 199.6.1.166...
> Connected to git.eu.kernel.org.
> Escape character is '^]'.
> Connection closed by foreign host.
>
> I thought it would be nice if git-fetch would retry the operation on 
> the other DNS records that were returned if the connection breaks.

I think people who wrote git_tcp_connect_sock() in connect.c apparently thought so, too. It uses either gethostbyname() or getaddrinfo() and iterate over the list of addresses returned from these functions.

Alex Riesen· Apr 19, 2011, 07:51 UTC · re: Junio C Hamano · lore

Re: Retry on all A/AAAA records

On Tue, Apr 19, 2011 at 06:22, Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
> Jan Engelhardt <jengelh@medozas.de> writes:
>
>> Just now, some git server that is in the DNS rotation seems to have an
>> issue,
>> $ telnet git.eu.kernel.org git
>> Trying 199.6.1.166...
>> Connected to git.eu.kernel.org.
>> Escape character is '^]'.
>> Connection closed by foreign host.
>>
>> I thought it would be nice if git-fetch would retry the operation on
>> the other DNS records that were returned if the connection breaks.
>
> I think people who wrote git_tcp_connect_sock() in connect.c apparently
> thought so, too.  It uses either gethostbyname() or getaddrinfo() and
> iterate over the list of addresses returned from these functions.

Jan probably means trying next server even if Git protocol fails, not just tcp connect.

← back to recent threads