-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Breaking change since v10.12.0 with zlib #28478
Copy link
Copy link
Closed
Labels
regressionIssues related to regressions.Issues related to regressions.zlibIssues and PRs related to the zlib module and its compression dependencies.Issues and PRs related to the zlib module and its compression dependencies.
Description
Activity
Metadata
Metadata
Assignees
Labels
regressionIssues related to regressions.Issues related to regressions.zlibIssues and PRs related to the zlib module and its compression dependencies.Issues and PRs related to the zlib module and its compression dependencies.
In particular the breaking change occurred with #23186.
Before this change, code like:
would result in
compress.read()returning only the compressed portion ofdatawritten before eachflush().After the change, node now seems to buffer the compressed contents of all of the
write()s and passes that to one of the callbacks as one big chunk. This broke at least thessh2-streamsmodule, which depends on getting only the compressed data for particular chunks because of the need to include them in separate packets.