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

Re: [JGIT PATCH 2/6] Add remote.name.timeout to configure an IO timeout

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jun 20, 2009, 22:54 UTC
Message-ID
<20090620225404.GT11191@spearce.org>
In-Reply-To
<200906210028.48954.robin.rosenberg.lists@dewire.com>
Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:
Show 9 quoted lines
> fredag 19 juni 2009 23:27:51 skrev "Shawn O. Pearce" <spearce@spearce.org>:
> > An IO timeout can be useful if the remote peer stops responding,
> > and the user wants the application to abort rather than block
> > indefinitely waiting for more input.
> > 
> > This is a JGit specific extension to the standard remote format.
> 
> Can we we assume C Git won't implement the same thing with a different 
> parameter name, or worse, the same name, but a different unit?
No, we can't assume anything.

I probably should add this to C Git too. I think its the logical name and units, e.g `git daemon --timeout=` already exists and takes seconds as the unit.

I wrote this series because I have a case where the remote server is sometimes not sending packets out... and the client just blocks. git fetch has the same issue. Doing git fetch or jgit fetch from a cron against this server causes the fetch processes to just pile up indefiniately. :-(

-- 
Shawn.
Previous: Robin RosenbergNext: Robin Rosenberg
Message 9 of 11 in “Add timeouts to network IO”
  1. 0/6 Add timeouts to network IOShawn O. Pearce, Jun 19, 2009
  2. 1/6 Create input and output streams that have timeoutsShawn O. Pearce, Jun 19, 2009
  3. 2/6 Add remote.name.timeout to configure an IO timeoutShawn O. Pearce, Jun 19, 2009
  4. 3/6 Add timeouts to smart transport protocol clientsShawn O. Pearce, Jun 19, 2009
  5. 4/6 Add timeouts to smart transport protocol serversShawn O. Pearce, Jun 19, 2009
  6. 5/6 Add timeouts to anonymous git:// daemonShawn O. Pearce, Jun 19, 2009
  7. 6/6 Add --timeout command line optionsShawn O. Pearce, Jun 19, 2009
  8. Robin RosenbergJun 20, 2009
  9. Shawn O. PearceJun 20, 2009
  10. Robin RosenbergJun 22, 2009
  11. 1/6 Create input and output streams that have timeoutsShawn O. Pearce, Jun 23, 2009

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.