Uh oh!
There was an error while loading. Please reload this page.
child_process: fix channel disconnect logic - #19566
Conversation
laino
commented
Mar 23, 2018
So running the new test against the old code I realized closing the handle when an error is reported is actually inconsistent with the previous behavior. Also in the queue there aren't actually handles, but the server/socket/etc. objects as passed by the user. Oops. I'll update the PR to fix that in second. |
c596738 to
fff9957CompareBridgeAR
commented
Apr 9, 2018
@nodejs/child_process @addaleax@bnoordhuis PTAL |
BridgeAR
commented
Apr 28, 2018
Ping @nodejs/collaborators @nodejs/tsc this needs some people who worked on |
tniessen
left a comment
There was a problem hiding this comment.
Can't really comment on the change itself, sorry.
Uh oh!
There was an error while loading. Please reload this page.
bnoordhuis
left a comment
There was a problem hiding this comment.
Left some comments but apart from that LGTM.
There was a problem hiding this comment.
Can you move this into the if block? Callbacks and event listeners should get fresh exception objects so they don't step on each other when they modify it.
There was a problem hiding this comment.
Slightly nicer to set socket.setEncoding('utf8') once.
fhinkel
commented
Jun 5, 2018
@laino Do you want to look into the requested changes? |
ryzokuken
commented
Jun 7, 2018
ping @laino |
maclover7
commented
Aug 11, 2018
ping @laino |
fff9957 to
74ceb62Comparelaino
commented
Sep 8, 2018
Implemented the requested changes and rebased onto the current master. |
lundibundi
commented
Oct 1, 2018
Cannot comment a change, unfortunately (I'm not really familiar with child_process) though @laino could you rebase this once again and I'll then start a CI for this one? |
There was a problem hiding this comment.
Nit: I don't think additional parentheses are needed here.
lundibundi
commented
Oct 8, 2018
ping @laino |
- Fix close not being emitted when calling process.disconnect() from a parent process. - Extend child-process-disconnect test case to also check that 'close' was emitted after 'exit' after 'disconnect'. - Create child-process-close-handle-queue test case, checking that 'send' callbacks of pending handles are called. Fixes: nodejs#19433
74ceb62 to
40a840dCompareTrott
commented
Nov 11, 2018
fhinkel
commented
Oct 26, 2019
Closing this due to inactivity. Please reopen if needed. |
from a parent process.
was emitted after 'exit' after 'disconnect'.
that 'send' callbacks of pending handles are called.
Fixes: #19433
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes