You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stream.PassThrough not draining (from Node 16) #40935
I think this is due to the change to transforming the data on write instead of read.
Therefore the readable length gets to 5 when write() is called, i.e. before read(), and https://github.com/nodejs/node/blame/master/lib/internal/streams/readable.js#L474 doesn't trigger.
Whereas on Node 14, the length is 0 when read() is called so we see length less than watermark.
Perhaps a highWaterMark of 0 isn't going to work going forward?
FYI I'm using it for testing.
Activity
davedoesdev commentedon Nov 24, 2021
I think this is due to the change to transforming the data on write instead of read.
Therefore the readable length gets to 5 when
write()is called, i.e. beforeread(), and https://github.com/nodejs/node/blame/master/lib/internal/streams/readable.js#L474 doesn't trigger.Whereas on Node 14, the length is 0 when
read()is called so we seelength less than watermark.Perhaps a
highWaterMarkof 0 isn't going to work going forward?FYI I'm using it for testing.
stream: drain Transform with 0 highWaterMark
stream: drain Transform with 0 highWaterMark
stream: drain Transform with 0 highWaterMark
stream: drain Transform with 0 highWaterMark