Skip to content

https_fetch: the connect probe retries, so one refused connect is not a down host (#2412) - #2650

Merged
ehartford merged 1 commit into
mainfrom
fix-2412
Oct 25, 2026
Merged

ehartford merged 1 commit into
mainfrom
fix-2412

Conversation

@ehartford

@ehartford ehartford commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Root cause: build_https_fetch_source (lib/std/build.w), the fetch program
every download action compiles, opened one TCP connection to the host and
returned 3 on the first failure (no connection to {host}:{port}); only
the download after a successful probe retried. A resolver blip on the
release host failed all four corpus downloads at once, while the same
servers answered minutes later.

The probe now makes ATTEMPTS (5) tries, pausing 1, 2, 3 and 4 s between
them (ten seconds in all, inside the 20 s download budget the source-cache
test gives a fetch), and names the count when it gives up.

Test: build/source_fetch.w's source-cache no-cache case (a source on
127.0.0.1:1) now also requires no connection to 127.0.0.1:1 after 5 attempts; the old program printed no connection to 127.0.0.1:1 (waited at most N s).

Closes #2412

… a down host (#2412)

Root cause: build_https_fetch_source (lib/std/build.w), the fetch program
every download action compiles, opened one TCP connection to the host and
returned 3 on the first failure (`no connection to {host}:{port}`); only
the download after a successful probe retried. A resolver blip on the
release host failed all four corpus downloads at once, while the same
servers answered minutes later.

The probe now makes ATTEMPTS (5) tries, pausing 1, 2, 3 and 4 s between
them (ten seconds in all, inside the 20 s download budget the source-cache
test gives a fetch), and names the count when it gives up.

Test: build/source_fetch.w's source-cache `no-cache` case (a source on
127.0.0.1:1) now also requires `no connection to 127.0.0.1:1 after 5
attempts`; the old program printed `no connection to 127.0.0.1:1 (waited at
most N s)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant