git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Retry on all A/AAAA records

From
Alex Riesen <raa.lkml@gmail.com>
Date
Apr 19, 2011, 07:51 UTC
Message-ID
<BANLkTimbFSoWEkurwoj2ixyDSj9LstsU6Q@mail.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:
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.

Previous: Junio C Hamano
Message 3 of 3 in “Retry on all A/AAAA records”
  1. Jan EngelhardtApr 16, 2011
  2. Junio C HamanoApr 19, 2011
  3. Alex RiesenApr 19, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.