You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
async iteration never starts for openReadStream on uncompressed entries #169
The below code reproduces the issue, only for read streams created for (small?) entries that are not compressed. (When using a zlib inflate filter in the middle, the behavior is different.)
zipfile.openReadStream(entry,function(err,readStream){forawait(letchunkofreadStream){console.log("never gets here");}console.log("never gets here either");});
Originally suggested in #168. The problem has to do with fd-slicer's destroy() implementation conflicting with assumptions in the most recent version of node 26.1. The solution is to stop doing custom destroy stuff and lean into the builtin destroy functionality introduced in node 8. The only remaining custom destroy stuff is in the vendored fd slicer dependency, which can be cleaned up quite a bit.
Reacted by l, Erick Zhao, Daniel Himmelstein, Owen Buckley and Roman
changed the title [-]async iteration never starts for openReadStream on uncompressed entries on certain versions of node[/-][+]async iteration never starts for openReadStream on uncompressed entries[/+]on May 21, 2026
The bug I've reproduced is not specific to node 26.1. It looks like it goes all the way back to node 12. Not sure it's going to fix anyone's real issues, but it's definitely a bug that should be addressed.
In case it helps anyone else: We started seeing several tests hang when we upgraded from Node.js 24.15.0 to 24.16.0. Upgrading from yauzl 3.3.0 to 3.3.1 fixes these issues.
Thanks for taking care of this so promptly!
Reacted by Josh Wolfe, Philippe Serhal, Greg Martyn, Nathan Sarang-Walters and Michael Erskine (at work)
Activity
[-]async iteration never starts for openReadStream on uncompressed entries on certain versions of node[/-][+]async iteration never starts for openReadStream on uncompressed entries[/+]thejoshwolfe commentedon May 21, 2026
The bug I've reproduced is not specific to node 26.1. It looks like it goes all the way back to node 12. Not sure it's going to fix anyone's real issues, but it's definitely a bug that should be addressed.
DeeDeeG commentedon May 21, 2026
yauzl 3.3.1 definitely fixed a real issue for us, thank you very much for the fix! ❤️
joshkel commentedon May 22, 2026
In case it helps anyone else: We started seeing several tests hang when we upgraded from Node.js 24.15.0 to 24.16.0. Upgrading from yauzl 3.3.0 to 3.3.1 fixes these issues.
Thanks for taking care of this so promptly!
fix(install): use native unzip on Linux to avoid yauzl hang
chore(release): 4.4.0 [skip ci]
Bump to yauzl 3.3.1 to fix thejoshwolfe/yauzl#169
[Electron unzip precedent](1) Record confirmed reproduction (#11185)
Fix silent exit 0 on VSIX files with STORED entries (#96)
fix(@wdio/utils): without an unzip tool, use extract-zip on Node 26 w…
fix(@wdio/utils): unzip browsers and drivers with an OS tool on Node …