Skip to content

[PB-7095]: fix(zip): settle closing an aborted zip that has no abort controller - #2354

Closed
terrerox wants to merge 1 commit into
masterfrom
fix/zip-close-after-abort
Closed

terrerox wants to merge 1 commit into
masterfrom
fix/zip-close-after-abort

Conversation

@terrerox

@terrerox terrerox commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

A zip aborted before any file was added, without an AbortController, never settled on close(), so a public folder download with every file failing hung. Independent of the rest of the stack: this PR can merge alone.

  • zip tracks the abort on the zip itself and stops adding files once it is aborted
  • close() settles for an aborted zip that has no abort controller

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

A zip aborted before any file was added, without an AbortController, never
settled on close(), so a public folder download with every file failing hung.
Track the abort on the zip itself and skip adding files once it is aborted.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: e33d65b
Status: ✅  Deploy successful!
Preview URL: https://839aaafe.drive-web.pages.dev
Branch Preview URL: https://fix-zip-close-after-abort.drive-web.pages.dev

View logs

@sonarqubecloud

Copy link
Copy Markdown

@terrerox terrerox closed this Nov 30, 2026
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.

1 participant