changed timeouts for connection cleanup

This commit is contained in:
Jan Prochazka
2022-11-13 11:59:57 +01:00
parent 6cca81f8f1
commit dc576e6ced
4 changed files with 10 additions and 8 deletions

View File

@@ -111,11 +111,11 @@ function start() {
setInterval(() => {
const time = new Date().getTime();
if (time - lastPing > 120 * 1000) {
if (time - lastPing > 40_000) {
console.log('Server connection not alive, exiting');
process.exit(0);
}
}, 60 * 1000);
}, 10_000);
process.on('message', async message => {
if (handleProcessCommunication(message)) return;