Uh oh!
There was an error while loading. Please reload this page.
stream: fix pipe deadlock when starting with needDrain - #36563
Conversation
ronag
commented
Dec 18, 2020
Missing test |
HomerSp
commented
Dec 18, 2020
I've updated your test slightly to check for the deadlock: https://gist.github.com/bea83eb0dcbd0aea3b2689c2cd91bb38 |
HomerSp
commented
Dec 18, 2020
Seems like we may need to use common.mustCallAtLeast(1) instead of common.mustCall() because the latter requires it to be called exactly once, and it looks like the build system calls pause twice. |
ronag
commented
Dec 18, 2020
@nodejs/streams |
ronag
commented
Dec 18, 2020
This was also a separate bug. |
nodejs-github-bot
commented
Dec 18, 2020
nodejs-github-bot
commented
Dec 18, 2020
HomerSp
commented
Dec 19, 2020
It's because pause is called when it's finishing (in unpipe) as well as in the pipe call - so your latest test code looks good to me. |
ronag
commented
Dec 20, 2020
Landed in ab895bd |
Related Issues
Fixes: #36544
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes