Skip to content

https_fetch: the connect probe has no retry; four corpus downloads at once all reported 'no connection' on a host that reached the same servers two minutes later #2412

Closed

Description

@ehartford

On studio128 (macOS 27.0.1), the first src/main build :release-checks of the seed cut nightly-20261014-local-2-0da433ee8a07 failed in its first minute on all four corpus downloads:

error: pcre2-download: could not fetch pcre2-10.47.tar.gz (pinned sha256 c08ae2…) from its source:
  https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.47/pcre2-10.47.tar.gz: no connection to github.com:443 (waited at most 20 s)
error: zlib-download: … https://zlib.net/fossils/zlib-1.3.2.tar.gz: no connection to zlib.net:443 (waited at most 20 s)

(c-algorithms-download and tommyds-download the same; each lane took 0.5 s, so the probe did not wait 20 s.)

Two minutes later on the same host curl reached both servers (HTTP 200 in 0.1–0.2 s) and src/main build :pcre2-download alone succeeded in 2.1 s.

The probe is tcp_connect_timeout(host, 443, connect_ms) in the generated https_fetch program (lib/std/build.w, "no connection to {host}:{port}"), called once with no retry; only the download after it retries (ATTEMPTS = 5). Four probes started in the same instant and all failed in 0.5 s, which looks like a failed resolve or a refused connect rather than a timeout.

Expected: the probe retries with the download's backoff, and its message says which step failed (resolve or connect) with the errno, so a transient at the start of a tier does not fail four lanes and the whole seed cut.

Workaround used: the four pinned archives were copied into the host's ~/.local/with-build-cache/sources/ from a machine that had them, and the tier reran green.

Logs: studio128 ~/cut2/release-checks.err of the first run (copied to the laptop at ~/.local/with-staging/studio-cut2/).

Activity

  1. self-assigned this
    on Oct 16, 2026
  2. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): reproduced in source. The generated https_fetch helper (lib/std/build.w:2522-2533) probes the connection once and returns 3 on the first failure ("no connection to {host}:{port} …"); only the download after a successful probe is retried (:2535-2539).

    pre-release: a network blip fails with get and corpus downloads outright; retrying the probe like the download is small.

  3. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Fixed on main by 2396bc9 (PR #2650, stack #2658; battery green on the stack top 48c1c72). The commit message names the root-cause line and the regression test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions