fix worker will die if the master exit

This commit is contained in:
Harlen Tan 2017-08-24 17:59:00 +08:00 committed by GitHub
parent 9c19fd5e8e
commit fc2ba410ad

View File

@ -128,6 +128,7 @@ function workerAppender(config) {
socket.on('timeout', socket.end.bind(socket));
// don't bother listening for 'error', 'close' gets called after that anyway
socket.on('close', createSocket);
socket.on('error', () => {});
}
createSocket();