This repository was archived by the owner on Apr 22, 2023. It is now read-only.
cluster.disconnect callback getting called too early in 0.11#6346
Closed
fiws wants to merge 2 commits intonodejs:masterfrom
Closed
cluster.disconnect callback getting called too early in 0.11#6346fiws wants to merge 2 commits intonodejs:masterfrom
fiws wants to merge 2 commits intonodejs:masterfrom
Conversation
|
Thank you for contributing this pull request! Here are a few pointers to make sure your submission will be considered for inclusion. Commit fiws/node@75e796c has the following error(s):
The following commiters were not found in the CLA:
You can fix all these things without opening another issue. Please see CONTRIBUTING.md for more information |
cluster.disconnect should only callback if all workers have disconnected.
Member
|
Thanks for your PR. I didn't take it but I landed a slightly different fix and regression test in 45885a1. Cheers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It seems like the disconnect callback is getting called to early. If I loop through the workers I still get one with the 'online' state. This does not happen on 0.10
Expected output: nothing or disconnect/exit
got: online
node version: v0.11.7
OS: Ubuntu Linux 64bit
Edit:
Sorry for the pull request hassle. I'm not so familiar with the way github handles them.