| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
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. |
Sorry, something went wrong.
|
@nodejs/child_process @addaleax @bnoordhuis PTAL |
Sorry, something went wrong.
|
Ping @nodejs/collaborators @nodejs/tsc this needs some people who worked on child_process before to have a look at it. It is open for a long time without a single comment so far... |
Sorry, something went wrong.
There was a problem hiding this comment.
Can't really comment on the change itself, sorry.
Sorry, something went wrong.
There was a problem hiding this comment.
Left some comments but apart from that LGTM.
Sorry, something went wrong.
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.
Sorry, something went wrong.
There was a problem hiding this comment.
Slightly nicer to set socket.setEncoding('utf8') once.
Sorry, something went wrong.
|
@laino Do you want to look into the requested changes? |
Sorry, something went wrong.
|
Implemented the requested changes and rebased onto the current master. |
Sorry, something went wrong.
|
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? |
Sorry, something went wrong.
There was a problem hiding this comment.
Nit: I don't think additional parentheses are needed here.
Sorry, something went wrong.
There was a problem hiding this comment.
assert.ifError( ?
Sorry, something went wrong.
- 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
Sorry, something went wrong.
|
Closing this due to inactivity. Please reopen if needed. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
from a parent process.
was emitted after 'exit' after 'disconnect'.
that 'send' callbacks of pending handles are called.
Fixes: #19433
Checklist