Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! stream: fix 0 transform hwm backpressure
  • Loading branch information
ronag committed Jul 5, 2022
commit 150c51b95c243ebf1debca9fb928bdde0680444a
3 changes: 3 additions & 0 deletions lib/internal/streams/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ function Transform(options) {
// TODO (ronag): This should preferably always be
// applied but would be semver-major.
if (options && options.highWaterMark === 0) {
// A Duplex will buffer both on the writable and readable side while
// a Transform just wants to buffer hwm number of elements. To avoid
// buffering twice we disable buffering on the writable side.
options = {
...options,
highWaterMark: null,
Expand Down