Skip to content

fix: preserve stalled download cancellation for retries - #54

Merged
elsbrock merged 1 commit into
elsbrock:mainfrom
alexg0:alexg0/fix-stall-cancellation
Sep 9, 2026
Merged

elsbrock merged 1 commit into
elsbrock:mainfrom
alexg0:alexg0/fix-stall-cancellation

Conversation

@alexg0

@alexg0 alexg0 commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

When the download progress monitor cancels a stalled attempt, the cancellation currently looks like a deliberate shutdown and bypasses the transient retry path. Preserve an explicit stall cause with context.WithCancelCause so stalled attempts remain retryable and ordinary shutdown cancellation remains non-transient.

Extends the paced HTTP stall regression and transient-error table to verify that distinction. This is an independent fix against main; sustained-stall RPC reporting is separate.

Extracted from #52 for independent review and landing ahead of the manifest
feature. #53 is the other independent prerequisite. Order: #53 and #54 → #52
→ #49 → #50 → #51 only if its product scope is accepted. Ready for review.

Validation: go test ./..., go test -race ./..., go vet ./..., go build ./..., and git diff --check all passed locally on Go 1.27.1 (darwin/arm64). The stalled cancellation regression was previously confirmed to fail against the original implementation. No deployment or live service changes were performed.

@alexg0
alexg0 marked this pull request as ready for review September 7, 2026 04:16
@elsbrock
elsbrock merged commit d241d93 into elsbrock:main Sep 9, 2026
1 check passed
elsbrock pushed a commit that referenced this pull request Sep 12, 2026
Retain the exact commits published in #53 and #54 before manifest ownership work.
@alexg0
alexg0 deleted the alexg0/fix-stall-cancellation branch October 4, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants