fix(update): a failed connection to a release server is tried again over IPv4 alone, and the error names the server #349
No reviewers
Labels
No labels
area/build
area/install
area/mods
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!349
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:fix/connect-ipv4-fallback"
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?
The nightly launcher's builder download can stop with a bare "timeout: connect" that names no server and gives no hint (Longshot#2752: nightly 224, Windows 11, no luck with or without a VPN). This makes a failed connection try again over IPv4 alone, and makes the final error say which server could not be reached.
What changes
src/update/releases.rs: every release request goes through oneget. When the connection itself fails (timeout, no route, the name does not resolve), it is sent once more by an agent limited to IPv4. A network whose IPv6 route is dead makes each address of a name wait out its own 15 s connect timeout; IPv4 alone reaches the same server.Not known
The issue has no log, so the cause on that PC is not known: IPv6, a firewall, a regional block of the CDN or origin, and a proxy all give the same message. This helps the IPv6 case and tells the next reporter what to look at; it does not fix the other cases. The release lookups in
src/game/releases.rs(json_url, the pull request list) still use ureq's default agent with no connect timeout; left alone here.Testing
Checked:
cargo check --locked,cargo clippy --locked -- -D warningsandcargo fmtpass on Linux.Not checked (WIP for this reason):
tests/test_launcher_core.pyand Tooling's release suite were not run (this PC runs no test suites), nothing was run on Windows, and the fallback was not seen working against a network with a broken IPv6 route. No test exercises it: a unit test would need a server that accepts only IPv4.Refs the issue; does not close it.
🤖 Generated with Claude Code
Possibly related, for context:
WIP: fix(update): a failed connection to a release server is tried again over IPv4 alone, and the error names the serverto fix(update): a failed connection to a release server is tried again over IPv4 alone, and the error names the server