Unity Hub kept failing downloads with "verification failed". Retrying didn't help. The official direct links returned 404. I spent a night measuring what actually happens, and the answer is more interesting than "slow network": Unity's download CDN 302-redirects mainland China IPs to an OSS bucket that contains no international builds at all. Hub's "verification failed" literally means the file doesn't exist there.
Here's the full measurement log. Everything is reproducible.
The redirect
$ curl -I https://download.unity3d.com/download_unity/f4e960bd2f88/Windows64EditorInstaller/UnitySetup64-7000.0.0a20.exe HTTP/1.1 302 Moved Temporarily Server: AkamaiGHost Location: https://download.unitychina.cn/download_unity/f4e960bd2f88/Windows64EditorInstaller/UnitySetup64-7000.0.0a20.exe All four download hosts (download., netstorage., beta., public-cdn.cloud.) redirect. The target bucket is empty:
| Probe | Result |
|---|---|
| Unity 7.0 alpha installer | 404 NoSuchKey |
| Unity 6.0 installer | 404 NoSuchKey |
| Unity 2022.3 installer | 404 NoSuchKey |
| OpenJDK component | 404 |
| Bucket root | 403 |
Server: AliyunOSS, error body <Code>NoSuchKey</Code>. The bucket exists; international builds simply aren't in it. The Tuanjie (团结引擎) CDN doesn't mirror international builds either — only its own t-suffixed versions.
Falsified: 8 kinds of header spoofing
What does the region check look at? I tried:
| Spoof | Result |
|---|---|
X-Forwarded-For: 8.8.8.8 | 302 |
True-Client-IP / CF-Connecting-IP / X-Real-IP | 302 |
Accept-Language: en-US | 302 |
User-Agent: UnityPackageManager/1.0 | 302 |
Query params (?x=1, ?download=1) | 302 |
--resolve to an overseas Akamai IP | 302 |
The decision is based on source IP only. No header trickery works. Plain HTTP, public CORS proxies, WARP endpoints, and Docker mirrors all failed too (documented in the repo so nobody retries them).
The opening: metadata APIs are directly reachable
Only file bodies are redirected. The metadata layer works fine from the mainland:
-
services.api.unity.com(version/module manifests): 200 in 734 ms - Hub's releases JSON: 200
-
dl.google.com(Android NDK/CMake): 9–10 MB/s direct
So resolving versions, module lists, official URLs and MD5s can all be done directly. The only missing piece is moving the file bodies.
Moving files: free proxy pool + chunked concurrency
Free proxies are individually terrible. One round: 7,082 candidates scraped → 584 alive → 158 with measurable speed → fastest 0.69 MB/s.
But the bottleneck is per-connection throttling, not total bandwidth. Same proxy, same URL, varying concurrency:
| Threads | Throughput |
|---|---|
| 1 | 0.74 MB/s |
| 16 | 2.54 MB/s |
| 32 | 3.68 MB/s |
| 64 | 4.83 MB/s |
| 96 | 6.46 MB/s |
| 128 | 4.57 MB/s (falls back) |
Long-run check: 512 MB in 256 chunks at 4.31 MB/s, with 2 chunks needing a retry pass (chunk-level retry covers this).
Final design: public APIs resolve official links → free proxy pool with health scoring → chunked concurrent downloads → SHA256/MD5 verification. Real results:
| File | Size | Speed | Verified |
|---|---|---|---|
| Unity 7.0 alpha editor | 3.52 GB | 2.6 MB/s, 23.8 min | MD5 ✅ |
| Android Support module | 1.63 GB | 1.7 MB/s, 16.6 min | MD5 ✅ |
| Windows IL2CPP module | 284 MB | 1.2 MB/s, 3.8 min | MD5 ✅ |
Editor MD5 matches Unity's published value; installer signature is valid. Slow, but no VPN and no paid proxy — it finishes and verifies.
Bonus pitfall: NSIS path length
The silent install (/S) failed with exit code 2, "Error writing temporary file". Ruled out: TEMP writability, disk space (7.54 GB needed, 19.2 GB free), ACLs, package corruption (Authenticode Valid, byte count exact), CRC (/NCRC still failed). Copying the installer to D:\u7.exe and rerunning: exit code 0. The cause was path length (LongPathsEnabled = 0), not permissions or antivirus. Module installers reproduce it.
The tool
I turned the whole investigation into an open-source tool, unitycn:
- List versions, download editors and modules (including Android SDK/NDK/JDK path setup)
- Zero dependencies, Python 3.9+, CI on Windows/macOS/Linux
- 23 unit tests; every measurement above lives in
docs/MEASUREMENTS.md
GitHub: https://github.com/wang1559458306/unitycn
If you're in a region with similar CDN weirdness, I'd love to hear whether the numbers look the same from your network — more samples make the conclusion sturdier.


