summaryrefslogtreecommitdiff
path: root/test/fixtures/clustered-server
Commit message (Collapse)AuthorAgeFilesLines
* test: fix debug-signal-cluster after da updateFedor Indutny2014-10-081-0/+10
| | | | | | | | | | The cluster children are hitting breakpoint at `cluster.onread` and hanging on a Semaphore wait now. This prevents them from disconnecting gracefully. Considering that the test is checking different thing, the cluster children needs to be force killed from the grand parent process. Reviewed-By: Trevor Norris <trevnorris@gmail.com> PR-URL: https://github.com/joyent/node/pull/8476
* test: fix assumption of worker exit on disconnectSam Roberts2013-12-311-3/+0
| | | | | | | | | | | Master was disconnecting its workers as soon as they both started up. Meanwhile, the workers were trying to listen. Its a race, sometimes the disconnect would happen between when worker gets the response message, and acks that message with a 'listening'. This worked OK after v0.11 introduced a behaviour where disconnect would always exit the worker, but once that backwards-incompatible behaviour is removed, the worker lives long enough to try and respond to the master, and child_process errors at the attempt to send from a disconnected child.
* test: don't call process.exit() in debugger testsBen Noordhuis2013-09-061-4/+7
| | | | | process.exit() tends to hide bugs, both in tests and node.js. Rewrite the tests so that the event loop exits naturally.
* debugger, cluster: each worker has new debug portMiroslav Bajtoš2013-05-081-0/+25
Implement support for debugging cluster workers. Each worker process is assigned a new debug port in an increasing sequence. I.e. when master process uses port 5858, then worker 1 uses port 5859, worker 2 uses port 5860, and so on. Introduce new command-line parameter '--debug-port=' which sets debug_port but does not start debugger. This option works for all node processes, it is not specific to cluster workers. Fixes joyent/node#5318.