public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Eric Wong <normalperson@yhbt•net>
To: "H. Peter Anvin" <hpa@zytor•com>
Cc: git@vger•kernel.org
Subject: Re: Request: timeout option for remote operations, esp. "git fetch"
Date: Sun, 10 Nov 2013 20:17:51 +0000	[thread overview]
Message-ID: <20131110201751.GA18513@dcvr.yhbt.net> (raw)
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?

  reply	other threads:[~2013-11-10 20:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-07 17:07 Request: timeout option for remote operations, esp. "git fetch" H. Peter Anvin
2013-11-10 20:17 ` Eric Wong [this message]
2013-11-12 17:00   ` H. Peter Anvin
2013-11-12 17:45     ` Junio C Hamano
2013-11-12 18:33       ` H. Peter Anvin
2013-11-14  8:01         ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131110201751.GA18513@dcvr.yhbt.net \
    --to=normalperson@yhbt$(echo .)net \
    --cc=git@vger$(echo .)kernel.org \
    --cc=hpa@zytor$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox