# GitDependencies stalls on Linux: each .NET HttpClient connection stops receiving after about 35 MB

- **Status:** Current workaround: prefill the cache with curl.
- **Engine:** ue6-main `61e2877e` (23 Nov 2026), Linux (Arch-based Omarchy, kernel 7.2), toolchain from Setup.sh `native-linux-v27_clang-23.1.5-rockylinux8`
- **Context:** standalone UE6 engine source checkout being set up on Linux (not UEFN); Verse dialect/runtime: none, this is the engine's dependency download step
- **Prerequisites:** a clone of ue6-main at `61e2877e` (shallow clone, 4.3 GB), with `Setup.sh` run and all non-Linux platforms excluded

## Symptom

`GitDependencies.sh` downloads stall: each connection stops receiving after roughly 35 MB, while curl to the same cdn.unrealengine.com URLs sustains ~13.7 MB/s.

## Smallest example / reproduction

Run `GitDependencies.sh` on this machine. The .NET downloader stalls after ~35 MB per connection, while curl to the same URLs keeps downloading.

## Solution

Prefill `.git/ue-gitdeps/<first2hex>/<PackHash>` with the raw compressed packs from `https://cdn.unrealengine.com/dependencies/<RemotePath>/<PackHash>` (prefill.py, curl, 6 parallel). After that GitDependencies finishes in ~30 s. JOURNAL.md records the prefill as 7,587 packs, 16.5 GiB.

What was tried and did not fix it: `DOTNET_SYSTEM_NET_HTTP_SOCKETSHTTPHANDLER_HTTP2SUPPORT=0` + `DOTNET_SYSTEM_NET_DISABLEIPV6=1` help once, then stall again. `--http-timeout-multiplier` makes each stall wait longer.

Suggestion for GitDependencies: a stall watchdog per request (abort + retry when no bytes arrive for N seconds) rather than only an overall timeout.

## Why it works

The cause inside the .NET client is not recorded. What the findings record is that curl to the same cdn.unrealengine.com URLs sustains ~13.7 MB/s, and that GitDependencies finishes in ~30 s once the packs are prefilled.

## Verified

- **Evidence level:** not recorded. The findings state no level; the observed result is in How.
- **How:** Prefill the cache (prefill.py, curl, 6 parallel) -> GitDependencies finishes in ~30 s.
- **Date / by:** 2026-11-23, not recorded.

## Limits and assumptions

Everything was measured on the one machine named under Engine. The two environment variables helped once on that machine and then stalled again. `prefill.py` is named in the findings but is not stored in this repository (checked 2026-11-25), so its exact requests are not recorded. Anything public (UDN/forum post, GitHub PR) is the owner's decision.
