# Retry on all A/AAAA records

3 messages from 2011-04-16 to 2011-04-19. Participants: Jan Engelhardt, Junio C Hamano, Alex Riesen.
Thread: https://gitlist.dev/t/27114

## Jan Engelhardt, 2011-04-16 11:14

Subject: Retry on all A/AAAA records
Message-ID: <alpine.LNX.2.01.1104161312590.11706@obet.zrqbmnf.qr>
URL: https://gitlist.dev/e/alpine.LNX.2.01.1104161312590.11706%40obet.zrqbmnf.qr

```

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, 2011-04-19 04:22

Subject: Re: Retry on all A/AAAA records
Message-ID: <7v39le7tvz.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v39le7tvz.fsf%40alter.siamese.dyndns.org
In-Reply-To: <alpine.LNX.2.01.1104161312590.11706@obet.zrqbmnf.qr>

```
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.

```

## Alex Riesen, 2011-04-19 07:51

Subject: Re: Retry on all A/AAAA records
Message-ID: <BANLkTimbFSoWEkurwoj2ixyDSj9LstsU6Q@mail.gmail.com>
URL: https://gitlist.dev/e/BANLkTimbFSoWEkurwoj2ixyDSj9LstsU6Q%40mail.gmail.com
In-Reply-To: <7v39le7tvz.fsf@alter.siamese.dyndns.org>

```
On Tue, Apr 19, 2011 at 06:22, Junio C Hamano <gitster@pobox.com> wrote:
> 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.

```
