git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "André Goddard Rosa" <andre.goddard@gmail.com>
To: "Ribeiro, Humberto Plinio" <humberto.ribeiro@siemens.com>
Cc: "Pavel Roskin" <proski@gnu.org>,
	"Git Mailing List" <git@vger.kernel.org>,
	"Linus Torvalds" <torvalds@osdl.org>
Subject: Re: Git clone stalls at a read(3, ...) saw using strace
Date: Fri, 28 Jul 2006 09:57:07 -0400	[thread overview]
Message-ID: <b8bf37780607280657x1c4c88d1ofd0734ddc4642d02@mail.gmail.com> (raw)
In-Reply-To: <EA24FE8B11562848B4760FD5EB4D2E9401B3F3C2@SAO1016V.ww101.siemens.net>

On 7/28/06, Ribeiro, Humberto Plinio <humberto.ribeiro@siemens.com> wrote:
> Hi, Andre.
>
> After a "ps -ef" I saw two instances of the script defined by
> GIT_PROXY_COMMAND. Strangely one of those instances was child
> of the other. A strace showed the scripts were blocked in a
>"waitpid(-1,". I've killed the child script and the git clone resumed the
>process.
>
> I didn't understand why this blocking on git happened though. The
> creation of these two instances (one child of the other) was also
> strange.

Yes,  it worked to me too, but I also don't know why.

Let me explain exactly what we had to do so someone perhaps can
explain why we had to do this:

I configured GIT_PROXY_COMMAND pointing to a script with this content:

(echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | nc 172.29.0.6 3128 |
(read a; read a; cat )

Later:

git clone git://source.mvista.com/git/linux-davinci-2.6.git

After some time (downloading 117 Mb) it stalled (git-fetch on a pipe
read) and we had to do this to resume and let it finish:

[root@mao2wx23 tmp]# ps -ef | grep git | grep -v grep
opb694    9975  1451  0 01:39 pts/11   00:00:00 /bin/sh
/usr/bin/git-clone git://source.mvista.com/git/linux-davinci-2.6.git
opb694    9985  9975  3 01:39 pts/11   00:01:56 git-fetch-pack --all
-k git //source.mvista.com git/linux-davinci-2.6.git
[root@mao2wx23 tmp]# ps -ef | grep proxy | grep -v grep
opb694    9986  9985  0 01:39 pts/11   00:00:00 /bin/sh
/home/opb694/proxy-cmd.sh source.mvista.com 9418
opb694    9987  9986  0 01:39 pts/11   00:00:00 /bin/sh
/home/opb694/proxy-cmd.sh source.mvista.com 9418
[root@mao2wx23 tmp]# kill 9987

Thanks again for the patience,
-- 
[]s,
André Goddard

      reply	other threads:[~2006-07-28 13:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-27 12:16 Git clone stalls at a read(3, ...) saw using strace André Goddard Rosa
2006-07-27 16:38 ` Pavel Roskin
2006-07-27 16:43   ` André Goddard Rosa
2006-07-27 16:54     ` Linus Torvalds
2006-07-27 17:17       ` André Goddard Rosa
2006-07-27 17:25         ` André Goddard Rosa
2006-07-27 17:50           ` Linus Torvalds
2006-07-27 17:57             ` André Goddard Rosa
2006-07-27 18:41             ` Pavel Roskin
2006-07-27 19:16               ` André Goddard Rosa
2006-07-28  9:56                 ` André Goddard Rosa
2006-07-28  9:58                   ` André Goddard Rosa
2006-07-28 13:36                     ` Ribeiro, Humberto Plinio
2006-07-28 13:57                       ` André Goddard Rosa [this message]

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=b8bf37780607280657x1c4c88d1ofd0734ddc4642d02@mail.gmail.com \
    --to=andre.goddard@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=humberto.ribeiro@siemens.com \
    --cc=proski@gnu.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).