Skip to content

Commit

Permalink
stream: drain Transform with 0 highWaterMark
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 24, 2021
1 parent af4e682 commit 385da26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/streams/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ Transform.prototype._write = function(chunk, encoding, callback) {
wState.ended || // Backwards compat.
length === rState.length || // Backwards compat.
rState.length < rState.highWaterMark ||
rState.highWaterMark === 0 ||
rState.length === 0
) {
callback();
Expand Down

0 comments on commit 385da26

Please sign in to comment.