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

Re: [PATCH] attempt connects in parallel for IPv6-capable builds

From
Torsten Bögershausen <tboegi@web.de>
Date
Jan 29, 2016, 06:08 UTC
Message-ID
<56AB01C2.3090803@web.de>
In-Reply-To
<xmqqtwlxjdbx.fsf@gitster.mtv.corp.google.com>
On 2016-01-29 04.04, Junio C Hamano wrote:
Show 20 quoted lines
> Eric Wong <normalperson@yhbt.net> writes:
> 
>> getaddrinfo() may return multiple addresses, not all of which
>> are equally performant.  In some cases, a user behind a non-IPv6
>> capable network may get an IPv6 address which stalls connect().
> 
> I'd assume that you are not solving a hypothetical problem, but you
> may (at least sometimes) have to reach outside world from such a
> network environment.  I further assume that git_tcp_connect() is not
> the only activity you do from such a network, and other network
> activities are similarly affected.
> 
> How do you work around the same issue for connections that do not go
> through git_tcp_connect()?  The same issue would affect Git traffic
> going over git-remote-curl, and also your usual Web browser traffic,
> no?
> 
> What I am getting at is if it is saner to solve the issue like how
> curl(1) solves it with its -4/-6 command line options, e.g. by
> adding a pair of configuration variables "net.ipv[46] = true/false".
(Please don't do parallel connects as a default)
I like the -4 / -6

Out of my head these kind of setups are not desired. (getaddrinfo returns an address and the the following connect fails) But it may be hard to fully avoid them in practice, and some RFC have been written, this may be a starting point:

https://www.rfc-editor.org/rfc/rfc5014.txt
Previous: Junio C HamanoNext: Eric Wong
Message 6 of 7 in “attempt connects in parallel for IPv6-capable builds”
  1. attempt connects in parallel for IPv6-capable buildsEric Wong, Jan 28, 2016
  2. Junio C HamanoJan 28, 2016
  3. Eric WongJan 29, 2016
  4. Johannes SixtJan 29, 2016
  5. Junio C HamanoJan 29, 2016
  6. Torsten BögershausenJan 29, 2016
  7. Eric WongJan 30, 2016

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.