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

About connection resuming

From
Cchenzero <chenzero@netease.com>
Date
Feb 20, 2018, 12:49 UTC
Message-ID
<b85f9654-3552-30c0-79bb-84fe10309d8b@netease.com>
Hello,
First, I am a user of git for about 2 years, I really appreciated you 
all to create this great useful software!
My encountered problem is:
sometimes, the repo is big and because my networking is not stable(or my 
network proxy has
some limitations), so, the clone will always fail.
I tried following ways to solve this, however, not much success.
1. clone depth 1
git clone --depth=1 https://..../repo.git
however, some repo even depth=1 might fail.(It seemed that my network 
proxy limit tcp connection.
if transfer over 50M, it will break)
2. download bundle file.
but no all git repo provide bundle files to download.

After some investment on the code, I think, perhaps, if enhance the git-http-backend to support http header: Range, or Content-Range, maybe it will enable connection resuming. the problem of this way is: it needs to upgrade the current deployed "git-http-backend", and maybe much code need to change including git-remote-http etc.

This is the very basic thought, and whether I should try other way ? Thanks a lot!

Next: Stefan Beller
Message 1 of 2 in “About connection resuming”
  1. chenzeroFeb 20, 2018
  2. Stefan BellerFeb 20, 2018

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.