Skip to content

#3083: a failed HTTPS download names the step that failed - #3090

Merged
ehartford merged 1 commit into
i3077from
i3083
Nov 8, 2026
Merged

ehartford merged 1 commit into
i3077from
i3083

Conversation

@ehartford

@ehartford ehartford commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3083.

Every failure in std.http was status -1 and nothing else: a host that did not answer, a TLS write that failed, a connection closed before the headers or before the declared body, too many redirects, a redirect without a Location. A seed fetch that "failed after 5 attempts" could not say which, and the next intermittent failure would have been as mute.

HttpResponse carries reason ("" when the server answered); each failure site writes its own; https_download_reason returns it, or HTTP <status> for a non-200 answer, or the write failure. The source-fetch twin in lib/std/build.w prints the reason per attempt. build/https_fetch.w is compiled by the pinned seed, whose std has no reason yet, so it prints what the seed's API tells apart (no response / HTTP status / write) and is marked seed-bound for the switch.

Fixture: test/behavior/behav_3083_https_failure_reasons.w. Battery on the stack top (#3091).

Every failure in std.http was status -1 and nothing else: a host that did not
answer, a TLS write that failed, a connection closed before the headers or
before the declared body, too many redirects, a redirect without a Location.
A seed fetch that "failed after 5 attempts" could not say which, and the
next intermittent failure would have been as mute.

`HttpResponse` carries `reason` ("" when the server answered); each failure
site writes its own; `https_download_reason` returns it, or `HTTP <status>`
for a non-200 answer, or the write failure. The source-fetch twin in
lib/std/build.w prints the reason per attempt. build/https_fetch.w is
compiled by the pinned seed, whose std has no `reason` yet, so it prints
what the seed's API can tell apart (no response / HTTP status / write) and
is marked seed-bound for the switch.
@ehartford
ehartford added this pull request to stack #3092 November 8, 2026 17:35
@ehartford ehartford changed the title i3083 #3083: a failed HTTPS download names the step that failed Nov 8, 2026
@ehartford
ehartford marked this pull request as ready for review November 8, 2026 18:00
@ehartford
ehartford merged commit 0d8b3f7 into main Nov 8, 2026
@ehartford
ehartford deleted the i3083 branch November 8, 2026 18:00
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