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

Re: [PATCH] daemon: enable SO_KEEPALIVE for all sockets

From
Jeff King <peff@peff.net>
Date
May 25, 2016, 22:42 UTC
Message-ID
<20160525224235.GE13776@sigill.intra.peff.net>
In-Reply-To
<20160525031505.5720-1-e@80x24.org>
On Wed, May 25, 2016 at 03:15:05AM +0000, Eric Wong wrote:
Show 5 quoted lines
> While --init-timeout and --timeout options exist and I've never
> run git-daemon without them, some users may forget to set them
> and encounter hung daemon processes when connections fail.
> Enable socket-level timeouts so the kernel can send keepalive
> probes as necessary to detect failed connections.

Makes sense. I wondered if there were any portability issues here, but it looks like the same code is found on the client side (but we'd still want it here for cases where the client thinks the connection is dead but the server does not realize it).

-Peff
Previous: Eric WongNext: Junio C Hamano
Message 2 of 4 in “daemon: enable SO_KEEPALIVE for all sockets”
  1. daemon: enable SO_KEEPALIVE for all socketsEric Wong, May 25, 2016
  2. Jeff KingMay 25, 2016
  3. Junio C HamanoMay 25, 2016
  4. Eric WongMay 25, 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.