Skip to content

Worker disconnect is not waiting for server closing #1305

@Olegas

Description

@Olegas

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

Steps to reproduce

  1. Start server
  2. Connect to it via e.g. telnet telnet localhost 8080
  3. Wait a few seconds for lines Disconnecting worker and Cluster: worker is disconnected to appear
  4. Process is not terminated because client connection is still alive
  5. Close client connection
  6. App terminates

Expected behavior:

  1. I don't expect Cluster: worker is disconnected message until all connections is closed (https://iojs.org/api/cluster.html#cluster_worker_disconnect "... wait for the 'close' event on those servers ... ")
  2. I expecting to see Server is closed message in the log (from line 32)

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