Closed hikaru7641 closed 9 years ago
Error "ECONNRESET" so Connector-server will crash, you try change code in pomelo/lib/hybridconnector.js:
this.tcpServer = net.createServer();
===>
// edit by nes
this.tcpServer = net.createServer(function(socket){
socket.on('error', function(err2) {
console.error('tcpServer ERROR:', err2);
});
});
My game server:
When running , sometime server connector crash with uncaughtExceptionerror: "ECONNRESET".
My solution catch this error: Add event "error" for hybridsocket on hybridconnector.js
When add event error, i only see console log error and connector server not crash ;) "{ [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }"
Hope this help for somebody ^^.