Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

test: fix test-cluster-disconnect #6840

Closed
wants to merge 2 commits into from
Closed

test: fix test-cluster-disconnect #6840

wants to merge 2 commits into from

Commits on Jan 10, 2014

  1. test: race condition in test-cluster-disconnect

    The test was not waiting for all the worker-created sockets
    to be listening before calling cluster.disconnect().
    As a result, the channels with the workers could get closed
    before all the socket handles had been passed to them, leading
    to various errors.
    orangemocha committed Jan 10, 2014
    Configuration menu
    Copy the full SHA
    476a687 View commit details
    Browse the repository at this point in the history
  2. lib: raise 'disconnect' event on channel close

    When a child process closes the channel to the parent, we should
    call _disconnect(), which raises the 'disconnect' event immediately,
    rather than disconnect(), which can potentially be deferred if
    there is a handle queue on the channel. A deferred disconnect would
    never be processed because the other side is gone and the channel
    will never be drained.
    orangemocha committed Jan 10, 2014
    Configuration menu
    Copy the full SHA
    7d0e06c View commit details
    Browse the repository at this point in the history