You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'disconnect' event is not emitted on cluster.worker #1304
@Olegas that sounds correct to me. Currently, there is no parallel for this in the cluster child process worker. Do you want to open a PR, or should I?
Demo app here: https://gist.github.com/Olegas/c2e5550911cbe8b96dae
Steps to reproduce:
Expected result:
Line
Worker disconnected(from https://gist.github.com/Olegas/c2e5550911cbe8b96dae#file-demo-js-L26) is present in log as stated in docs: https://iojs.org/api/cluster.html#cluster_event_disconnect_1If I change line 25 to
cluster.worker.process.on('disconnect', ...it works fine.