cli: fix decompression loop stalling (#191512)
Fixes #191501 It turns out this was a difference in inflate/deflate implementations between the extension/SDK and the CLI. The SDK uses Node's zlib bindings, while by default Rust's flate2 library uses a rust port of [miniz][1]. The 'logic' in the CLI was good, but miniz does not appear to flush decompressed data as nicely on SYNC'd boundaries as zlib does, which caused data to 'stall'. Telling the flate2 crate to use the native bindings fixed this. This could also be the cause of the flakiness occasionally seen on idle tunnel connections! [1]: https://github.com/richgel999/miniz
C
Connor Peet committed
db135a575a4af753e11b38f9b10540a2363ec16b
Parent: 84e730a
Committed by GitHub <[email protected]>
on 8/28/2023, 7:51:04 PM