git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Commit ae1a7eefff may have broken git behind a firewall
@ 2021-10-12 21:03 H.J. Lu
  2021-10-12 21:17 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: H.J. Lu @ 2021-10-12 21:03 UTC (permalink / raw)
  To: git

https://github.com/git/git/commit/ae1a7eefff

may have broken git behind a firewall:

https://bugzilla.redhat.com/show_bug.cgi?id=2013288

I am behind a firewall and using gitproxy:

exec socat - socks4:proxy-server-name:$1:$2

I got

$ git clone git://gcc.gnu.org/git/gcc.git
Cloning into 'gcc'...
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
$

Both

$ git clone --depth 1 git://gcc.gnu.org/git/gcc.git

and

$ git clone https://gcc.gnu.org/git/gcc.git

work.

$ git -c protocol.version=1 clone git://gcc.gnu.org/git/gcc.git

also works.

-- 
H.J.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Commit ae1a7eefff may have broken git behind a firewall
  2021-10-12 21:03 Commit ae1a7eefff may have broken git behind a firewall H.J. Lu
@ 2021-10-12 21:17 ` Jeff King
  2021-10-12 21:41   ` H.J. Lu
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2021-10-12 21:17 UTC (permalink / raw)
  To: H.J. Lu; +Cc: git

On Tue, Oct 12, 2021 at 02:03:39PM -0700, H.J. Lu wrote:

> https://github.com/git/git/commit/ae1a7eefff
> 
> may have broken git behind a firewall:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=2013288
> 
> I am behind a firewall and using gitproxy:
> 
> exec socat - socks4:proxy-server-name:$1:$2

It's not the firewall; it's socat not handling half-duplex shutdown very
well (though you are right that it is related to the commit you found;
that's when Git started closing the write pipe when it's done writing).

More discussion in this thread:

  https://lore.kernel.org/git/YS1Bni+QuZBOgkUI@coredump.intra.peff.net/

(the short answer is: use "socat -t 10").

-Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Commit ae1a7eefff may have broken git behind a firewall
  2021-10-12 21:17 ` Jeff King
@ 2021-10-12 21:41   ` H.J. Lu
  0 siblings, 0 replies; 3+ messages in thread
From: H.J. Lu @ 2021-10-12 21:41 UTC (permalink / raw)
  To: Jeff King; +Cc: git

On Tue, Oct 12, 2021 at 2:17 PM Jeff King <peff@peff.net> wrote:
>
> On Tue, Oct 12, 2021 at 02:03:39PM -0700, H.J. Lu wrote:
>
> > https://github.com/git/git/commit/ae1a7eefff
> >
> > may have broken git behind a firewall:
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=2013288
> >
> > I am behind a firewall and using gitproxy:
> >
> > exec socat - socks4:proxy-server-name:$1:$2
>
> It's not the firewall; it's socat not handling half-duplex shutdown very
> well (though you are right that it is related to the commit you found;
> that's when Git started closing the write pipe when it's done writing).
>
> More discussion in this thread:
>
>   https://lore.kernel.org/git/YS1Bni+QuZBOgkUI@coredump.intra.peff.net/
>
> (the short answer is: use "socat -t 10").
>
> -Peff

Yes, "socat -t 10" works.

Thanks.

-- 
H.J.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-12 21:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12 21:03 Commit ae1a7eefff may have broken git behind a firewall H.J. Lu
2021-10-12 21:17 ` Jeff King
2021-10-12 21:41   ` H.J. Lu

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).