zlib: avoid waiting for paused ZIP iterators · nodejs/node@069a1b1 · GitHub
Skip to content

Commit 069a1b1

Browse files
trivikraduh95
authored andcommitted
zlib: avoid waiting for paused ZIP iterators
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 PR-URL: #65278 Fixes: #65277 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent fce1b6a commit 069a1b1

2 files changed

Lines changed: 26 additions & 4 deletions

File tree

‎lib/internal/zip/entry.js‎

Lines changed: 11 additions & 4 deletions

‎test/parallel/test-zlib-zip-file-lifecycle.js‎

Lines changed: 15 additions & 0 deletions

0 commit comments

Comments
 (0)