You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone,
I think script code in file "pomelo-rpc/lib/rpc-server/acceptors/ws-acceptor.js" need throw to process on uncaughtException. It flexibility for deverlop.
Because sometime exception i need wirter log after check.
socket.on('message', function(pkg) {
try {
if(pkg instanceof Array) {
processMsgs(socket, self, pkg);
} else {
processMsg(socket, self, pkg);
}
} catch(e) {
// socke.io would broken if uncaugth the exception
logger.error('rpc server process message error: %j', e.stack);
//add code
throw e;
}
});
process.on('uncaughtException', function (err) {
});
The text was updated successfully, but these errors were encountered:
Hi everyone,
I think script code in file "pomelo-rpc/lib/rpc-server/acceptors/ws-acceptor.js" need throw to process on uncaughtException. It flexibility for deverlop.
Because sometime exception i need wirter log after check.
socket.on('message', function(pkg) {
try {
if(pkg instanceof Array) {
processMsgs(socket, self, pkg);
} else {
processMsg(socket, self, pkg);
}
} catch(e) {
// socke.io would broken if uncaugth the exception
logger.error('rpc server process message error: %j', e.stack);
//add code
throw e;
}
});
process.on('uncaughtException', function (err) {
});
The text was updated successfully, but these errors were encountered: