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

Re: Request: timeout option for remote operations, esp. "git fetch"

From
EWEric Wong <normalperson@yhbt.net>
Date
Nov 10, 2013, 20:17 UTC
Message-ID
<20131110201751.GA18513@dcvr.yhbt.net>
In-Reply-To
<527BC8DC.7010108@zytor.com>
"H. Peter Anvin" <hpa@zytor.com> wrote:
> When a remote server is unavailable or very slow, some git commands can
> stall out indefinitely.  It would be a very good thing if remote
> commands -- but especially git fetch -- could be given a timeout.

We've had SO_KEEPALIVE on git and ssh transports since e47a8583 (2011-12-06) SO_KEEPALIVE for http was added recently (a15d069a) and will be in git 1.8.5

Do you want a shorter timeout for slow (but still alive) servers?
Previous: H. Peter AnvinNext: H. Peter Anvin
Message 2 of 6 in “Request: timeout option for remote operations, esp. "git fetch"”
  1. H. Peter AnvinNov 7, 2013
  2. Eric WongNov 10, 2013
  3. H. Peter AnvinNov 12, 2013
  4. Junio C HamanoNov 12, 2013
  5. H. Peter AnvinNov 12, 2013
  6. Jeff KingNov 14, 2013

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.