fix(network): a download that falls back to git.magicbean.dev stays there, not redirected to the git-cdn that just failed #122
No reviewers
Labels
No labels
area/build
area/install
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!122
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:fix/cdn-fallback-direct"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When git-cdn.magicbean.dev cannot be reached, the launcher's fall back to git.magicbean.dev is redirected straight back to git-cdn, so a PC that fails on the CDN alone cannot download a release's
SHA256SUMS, a builder or a tool at all (the second report in #120: the API on git.magicbean.dev answers 200, the Build button stays off).Refs #120. This does not fix that issue's first report, where the TLS handshake to git.magicbean.dev itself fails too: nothing in the launcher's fall back can help there.
What changes
/<owner>/<repo>/releases/download/...) and packages (/api/packages/...) to git-cdn (the zone's redirect rule). The rule leaves a link withcdn=0in its query alone, and Forgejo then serves the file itself (from its storage, another host than git-cdn).CdnFetcher.Directaddscdn=0to such a link, once. Every download asked of git.magicbean.dev carries it: the fall back after the CDN failed, a tool's own git.magicbean.dev link (Expand), and all of them withLONGSHOT_LAUNCHER_NO_CDN=1, which was redirected to the CDN as well and so never left it for a download.Checked
python -I tests/test_launcher_core.py(1346 checks) andpython -I tests/test_release.py(31 tests) pass.CdnChecksnow expects thecdn=0link wherever git.magicbean.dev is asked, and checksDirectitself.https://git.magicbean.dev/MagicBeanDev/Longshot/releases/download/v3.0.0-rc.4/SHA256SUMSanswers 302 to git-cdn; with?cdn=0it gives the same 290 bytes as the CDN without going there. The llvm-mingw package link behaves the same.Nothing on screen changes.
🤖 Generated with Claude Code