node/doc
Julien Gilli 90d1147b8b cluster: centralize removal from workers list.
Currently, cluster workers can be removed from the workers list in three
different places:
- In the exit event handler for the worker process.
- In the disconnect event handler of the worker process.
- In the disconnect event handler of the cluster master.

However, handles for a given worker are cleaned up only in one of these
places: in the cluster master's disconnect event handler.

Because these events happen asynchronously, it is possible that the
workers list is empty before we even clean up one handle. This makes
the assert that makes sure that no handle is left when the workers
list is empty fail.

This commit removes the worker from the cluster.workers list only when
the worker is dead _and_ disconnected, at which point we're sure that
its associated handles are cleaned up.

Fixes #8191 and #8192.

Reviewed-By: Fedor Indutny <fedor@indutny.com>
2014-09-02 22:14:04 +04:00
..
api cluster: centralize removal from workers list. 2014-09-02 22:14:04 +04:00
api_assets doc: style the 'type' fields in API docs 2013-07-16 10:49:54 -07:00
changelog-foot.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
changelog-head.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
full-white-stripe.jpg build: readd missing installer resources 2014-02-18 15:34:29 -08:00
mac_osx_nodejs_installer_logo.png build: readd missing installer resources 2014-02-18 15:34:29 -08:00
node.1 doc: re-add node.1 man page 2014-02-14 11:01:49 -08:00
sh.css doc: use somewhat consistent styling for css assets 2012-08-23 17:54:12 +02:00
sh_javascript.min.js Man page generation. 2009-09-10 13:40:38 +02:00
sh_main.js Syntax highlighting for <tt> elements. 2009-09-23 16:58:28 +02:00
sh_vim-dark.css doc: use somewhat consistent styling for css assets 2012-08-23 17:54:12 +02:00
template.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
thin-white-stripe.jpg build: readd missing installer resources 2014-02-18 15:34:29 -08:00