stream: fix merge abort for pending sources · nodejs/node@8a4a997 · GitHub
Skip to content

Commit 8a4a997

Browse files
trivikraduh95
authored andcommitted
stream: fix merge abort for pending sources
Wake the multi-source merge loop when its abort signal fires so a pending read rejects instead of waiting for another source to settle. When the primary error is the abort reason, do not await iterator cleanup because sources may already be stuck in pending next() calls. Fixes: #64012 Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: #64013 Backport-PR-URL: #64675 Fixes: #64012 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent ac5e5d5 commit 8a4a997

2 files changed

Lines changed: 57 additions & 3 deletions

File tree

lib/internal/streams/iter/consumers.js

Lines changed: 37 additions & 3 deletions

test/parallel/test-stream-iter-consumers-merge.js

Lines changed: 20 additions & 0 deletions

0 commit comments

Comments
 (0)