joyent/node — pull request #5757 by groner (2013-06-27 23:18:41+00:00)
Title: cluster: Multiple calls to worker.disconnect() should still wait for server close events

The current worker.disconnect() code includes a check for server._handle to determine if the server is already closed.

This PR also checks server._connections to see if there are open connections remaining. It also extends the simple/test-cluster-worker-disconnect.js test to check that open connections keep the worker alive.