mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
extract ClientManager from server.js
Make client manager more robust when piping connections.
This commit is contained in:
@@ -45,5 +45,14 @@ process.on('SIGTERM', () => {
|
||||
process.exit();
|
||||
});
|
||||
|
||||
process.on('uncaughtException', (err) => {
|
||||
log.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
process.on('unhandledRejection', (reason, promise) => {
|
||||
log.error(reason);
|
||||
});
|
||||
|
||||
// vim: ft=javascript
|
||||
|
||||
|
||||
Reference in New Issue
Block a user