for (var i = 0; i < cpus.length; i++) {
createWorker();
}
server.close();
var server = http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('handled by child, pid is ' + process.pid + '\n');
throw new Error('throw exception');
});
TypeError: Cannot read property '_simultaneousAccepts' of null
at Object._setSimultaneousAccepts (net.js:1706:16)
at ChildProcess.target._send (internal/child_process.js:657:13)
at ChildProcess.target.send (internal/child_process.js:586:19)
at Master.forkWorker (G:\code\config-app-soa-master\config-app\ds-uibuilder\dist\src\server\cluster\master.js:60:16)
at ChildProcess.worker.on (G:\code\config-app-soa-master\config-app\ds-uibuilder\dist\src\server\cluster\master.js:71:18)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)