Repo clones over HTTPS are broken for slow connections #135808
Replies: 2 comments 6 replies
-
This is still broken as of today, 2024-11-07. |
Beta Was this translation helpful? Give feedback.
-
What in the world is this? Some horrible DoS mitigation?
Could I see their response? This issue can be reliably reproduced by attempting to clone a repository from github.com over HTTPS over Tor. However I have also reproduced this issue by attempting to clone a large repository through connecting to an external SOCKS5 proxy over Tor where the target system hosting the proxy is on a fast network and cloning on the target system itself succeeds which would led credence to your theory. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Introduction: Repo clones over HTTPS are broken for slow connections due to what seems to be an error on GitHub's end, and GitHub apparently doesn't plan to fix it. This is can be a big issue since e.g. this also breaks any submodules or install scripts that indirectly access any GitHub repo of any kind that isn't trivially sized.
I am writing this here so people can reference this issue.
This is who is affected:
Your connection is reliable enough to download 100MB+ files without a hiccup or need to pause and resume in at least the majority of cases.
You can clone big repositories on gitlab.com and codeberg.org and other alternate git repository platforms without issues, other than at most rare hiccups which don't repeat on 2nd try.
But your connection is DSL era slow, 5mbit/s or slower.
This is how it looks like:
This is why it seems to be an error on Github's end:
I found others with the same problem, although due to people usually having faster internet it's somewhat rare.
Cloning similarly sized or magnitudes larger repositories with HTTPS from any other platform like gitlab.com works fine, just github.com is affected.
Cloning the repositories from GitHub via SSH instead works.
Downloading anything else, like archives, of even larger size via HTTPs from GitHub works. Only HTTPS git clone doesn't.
GitHub's support admitted in response to me that this is likely a problem on their end, but that they don't plan to fix it any time soon. At least this is my understanding of their responses.
Beta Was this translation helpful? Give feedback.
All reactions