stream: fix drop-newest behavior in share() · nodejs/node@d77788e · GitHub
Skip to content

Commit d77788e

Browse files
trivikraduh95
authored andcommitted
stream: fix drop-newest behavior in share()
Discard upstream pull results when the shared buffer has reached its highWaterMark instead of allowing the buffer to grow beyond its limit. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> PR-URL: #64417 Fixes: #64416 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent bced143 commit d77788e

2 files changed

Lines changed: 14 additions & 17 deletions

File tree

lib/internal/streams/iter/share.js

Lines changed: 7 additions & 7 deletions

test/parallel/test-stream-iter-share-from.js

Lines changed: 7 additions & 10 deletions

0 commit comments

Comments
 (0)