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 7b758da95cd12505ff6d490e9670d24e8df171fa
2 changes: 1 addition & 1 deletion lib/internal/streams/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function Transform(options) {
options = {
...options,
highWaterMark: null,
readableHighWaterMark: Math.max(1, options.readableHighWaterMark || options.highWaterMark),
readableHighWaterMark: Math.max(1, options.readableHighWaterMark || options.highWaterMark || 1),
// TODO (ronag) This should preferably be 0, but we have
// a "bug" where we check needDrain before calling _write and not after.
writableHighWaterMark: options.writableHighWaterMark || 1
Expand Down