node-unzip: Unzip stops prematurely in Node 0.10.0
Unzip stops prematurely in Node 0.10.0 without an error when inflating compressed files that are larger than the zlib stream’s highWaterMark (16 kb). I believe the issue is the line self._untilStream.pipe(vars.compressedSize, inflater).pipe(entry) - the inflater stream never emits ‘end’ or ‘finish’.
Code:
if (fileSizeKnown) {
entry.size = vars.uncompressedSize;
self._untilStream.pipe(vars.compressedSize, inflater).pipe(entry);
}
The error surfaced while I was investigating #19.
About this issue
- Original URL
- State: open
- Created 11 years ago
- Comments: 21 (12 by maintainers)
Commits related to this issue
- Parse completes w/o registered 'entry' listeners Parse automatically consumes (and throws away) the same bytes that would be piped through to an entry stream even when no 'entry' listener has been re... — committed to EvanOxfeld/node-unzip by deleted user 11 years ago
- Add function to auto consume unwanted entries Adds entry.autodrain() method which should be called on entries that are not piped or read() from. Otherwise entry streams fill up their buffers and caus... — committed to EvanOxfeld/node-unzip by deleted user 11 years ago
Hi, I installed from npm, used as:
And getting error with Mac packed archives: