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

Re: [PATCH 2/2] GIT: Listen on IPv6 as well, if available.

From
YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Date
Jul 22, 2005, 21:35 UTC
Message-ID
<20050722.173517.73563363.yoshfuji@linux-ipv6.org>
In-Reply-To
<20050722212151.GI11916@pasky.ji.cz>
In article <20050722212151.GI11916@pasky.ji.cz> (at Fri, 22 Jul 2005 23:21:51 +0200), Petr Baudis <pasky@suse.cz> says:
> this whole getaddrinfo() magic looks horribly complicated. What's wrong
> on just adding a similar code (or factoring it out to a function) for
> IPv6 as there is for IPv4, just s/INET/INET6/?
Because it is the Good Way To Go; protocol independent programming.
Show 7 quoted lines
> > -				die("accept returned %s", strerror(errno));
> > +		struct sockaddr_storage ss;
> > +		socklen_t sslen = sizeof(ss);
> 
> Perhaps move those to the most inner block. (All right, I'm nitpicking
> too much again, sorry.)
> 
okay.
Show 5 quoted lines
> > +             if (select(maxfd + 1, &fds, NULL, NULL, NULL) == -1) {
> > +                     /* warning? */
> 
> Certainly a warning and at least sleep(1) to avoid cpuburn-like
> behaviour in case of anything going wrong.
okay...
--yoshfuji
Previous: Petr BaudisNext: Petr Baudis
Message 3 of 4 in “GIT: Listen on IPv6 as well, if available.”
  1. 2/2 GIT: Listen on IPv6 as well, if available.YOSHIFUJI Hideaki / 吉藤英明, Jul 21, 2005
  2. Petr BaudisJul 22, 2005
  3. YOSHIFUJI Hideaki / 吉藤英明Jul 22, 2005
  4. Petr BaudisJul 22, 2005

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.