Skip to content

'disconnect' event is not emitted on cluster.worker #1304

Description

@Olegas

Demo app here: https://gist.github.com/Olegas/c2e5550911cbe8b96dae

Steps to reproduce:

  1. Start app, wait 10 sec
  2. App is terminated and log show the following lines
Master started
Worker started
Worker listening
Disconnecting worker
Cluster: worker is disconnected

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_1

If I change line 25 to cluster.worker.process.on('disconnect', ... it works fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    clusterIssues and PRs related to the cluster subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo