git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Retry on all A/AAAA records
@ 2011-04-16 11:14 Jan Engelhardt
  2011-04-19  4:22 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2011-04-16 11:14 UTC (permalink / raw)
  To: git


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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Retry on all A/AAAA records
  2011-04-16 11:14 Retry on all A/AAAA records Jan Engelhardt
@ 2011-04-19  4:22 ` Junio C Hamano
  2011-04-19  7:51   ` Alex Riesen
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2011-04-19  4:22 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: git

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Retry on all A/AAAA records
  2011-04-19  4:22 ` Junio C Hamano
@ 2011-04-19  7:51   ` Alex Riesen
  0 siblings, 0 replies; 3+ messages in thread
From: Alex Riesen @ 2011-04-19  7:51 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jan Engelhardt, git

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-19  7:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-16 11:14 Retry on all A/AAAA records Jan Engelhardt
2011-04-19  4:22 ` Junio C Hamano
2011-04-19  7:51   ` Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).