From 8719b424e5cbd8e6ec2c2bee3bd49a5452c70152 Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 12 Nov 2024 02:03:56 +0900 Subject: [PATCH] Increase websocket from 5s to 10s --- backend/src/api/services/acceleration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/services/acceleration.ts b/backend/src/api/services/acceleration.ts index e86f0f200..4e0d87b5a 100644 --- a/backend/src/api/services/acceleration.ts +++ b/backend/src/api/services/acceleration.ts @@ -285,8 +285,8 @@ class AccelerationApi { logger.debug('received pong from acceleration websocket server'); }); } else { - if (this.lastPing > this.lastPong && Date.now() - this.lastPing > 5000) { - logger.warn('No pong received within 5 seconds, terminating connection'); + if (this.lastPing > this.lastPong && Date.now() - this.lastPing > 10000) { + logger.warn('No pong received within 10 seconds, terminating connection'); this.ws.terminate(); this.ws = null; this.websocketConnected = false;