Open john-bv opened 4 years ago
There is currently an issue with decompressing binary streams. I have a few solutions but heres the issue. zlib.unzip() is expecting a chunk that isn't incomplete or shorter than what was provided. The first hack fix:
zlib.unzip()
zlib.unzip(Buffer, { finishFlush: zlib.constants.Z_SYNC_FLUSH }, callback);
This creates our first issue where only the first few chunks are decompressed, causing lots of errors in the future
Another hack fix I plan do to is pipe the buffer directly and chunk the stream, then pass it through callback.
Update: I believe this may be due to an error on how encapsulated packets are handled, looking into this futher
There is currently an issue with decompressing binary streams. I have a few solutions but heres the issue.
zlib.unzip()
is expecting a chunk that isn't incomplete or shorter than what was provided. The first hack fix:This creates our first issue where only the first few chunks are decompressed, causing lots of errors in the future
Another hack fix I plan do to is pipe the buffer directly and chunk the stream, then pass it through callback.