Skip to content

zlib: avoid waiting for paused ZIP iterators - #65278

Open
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:zlib-zipfile-close-hang
Open

zlib: avoid waiting for paused ZIP iterators#65278
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:zlib-zipfile-close-hang

Conversation

@trivikr

@trivikr trivikr commented Aug 14, 2026

Copy link
Copy Markdown
Member

Fixes: #65277

Track file-backed contentIterator() reads only while I/O is active. This lets ZipFile.close() finish when an iterator is paused after yielding a chunk, while still waiting for reads in flight.


Assisted-by: codex:gpt-5.6-sol

Track file-backed contentIterator() reads only while I/O is active.
This lets ZipFile.close() finish when an iterator is paused after
yielding a chunk, while still waiting for reads in flight.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: codex:gpt-5.6-sol
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Aug 14, 2026
@nodejs-github-bot

This comment was marked as resolved.

@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.32%. Comparing base (91a99c5) to head (90480cd).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65278      +/-   ##
==========================================
- Coverage   90.32%   90.32%   -0.01%     
==========================================
  Files         751      751              
  Lines      250000   250007       +7     
  Branches    47231    47231              
==========================================
+ Hits       225816   225821       +5     
+ Misses      15566    15565       -1     
- Partials     8618     8621       +3     
Files with missing lines Coverage Δ
lib/internal/zip/entry.js 98.13% <100.00%> (+0.01%) ⬆️

... and 26 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@trivikr trivikr added the zlib Issues and PRs related to the zlib subsystem. label Aug 14, 2026
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

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

Labels

needs-ci PRs that need a full CI run. zlib Issues and PRs related to the zlib subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zlib: ZipFile.close() hangs after partially consuming file-backed contentIterator()

2 participants