git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "brian m. carlson" <sandals@crustytoothpaste.net>
To: Jeff King <peff@peff.net>
Cc: "Simon,
	Martin (Digiteq Automotive)" 
	<Martin.Simon@digiteqautomotive.com>,
	"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: possible race condition (fetch-pack: unexpected disconnect while reading sideband packet)
Date: Fri, 16 Apr 2021 00:04:07 +0000	[thread overview]
Message-ID: <YHjUd67KujPCl1U9@camp.crustytoothpaste.net> (raw)
In-Reply-To: <YHf5bkiE7SVPTBvU@coredump.intra.peff.net>

[-- Attachment #1: Type: text/plain, Size: 1620 bytes --]

On 2021-04-15 at 08:29:34, Jeff King wrote:
> On Wed, Apr 14, 2021 at 10:12:44AM +0000, Simon, Martin (Digiteq Automotive) wrote:
> 
> > Actual result (when failed):
> > Cloning into 'local-repo-name'...
> > remote: Enumerating objects: 237, done.
> > remote: Counting objects: 100% (237/237), done.
> > remote: Compressing objects: 100% (129/129), done.
> > fetch-pack: unexpected disconnect while reading sideband packet
> > fatal: early EOF
> > fatal: fetch-pack: invalid index-pack output
> 
> This could be many things. A bug or race on the client side is possible,
> but it could also be that the network session really _is_ being
> disconnected. This could be something in the network stack itself
> terminating the connection, or it could be a bug or other error on the
> server.

I'll point out that this kind of occurrence also happens if folks are
using proxies or TLS middleboxes, as well as some antivirus and firewall
programs on Windows (which often end up being well-hidden proxies due to
their configuration, unfortunately).  That usually only applies to
HTTPS, so oftentimes switching to SSH, as Peff suggested, may be a good
choice.

You can also try running the operation under WSL 2, which generally is
not subject to most of those programs and mostly handles its own
networking, to see if it is one of those programs or if there's a more
general network- or protocol-specific problem.  That will at least give
you more information about the nature of what's going on and help you
troubleshoot further.
-- 
brian m. carlson (he/him or they/them)
Houston, Texas, US

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 263 bytes --]

      reply	other threads:[~2021-04-16  0:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-14 10:12 possible race condition (fetch-pack: unexpected disconnect while reading sideband packet) Simon, Martin (Digiteq Automotive)
2021-04-15  8:29 ` Jeff King
2021-04-16  0:04   ` brian m. carlson [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=YHjUd67KujPCl1U9@camp.crustytoothpaste.net \
    --to=sandals@crustytoothpaste.net \
    --cc=Martin.Simon@digiteqautomotive.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    /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).