From d27a5937eeedafec11e52f4fda137b5ccbe4dc62 Mon Sep 17 00:00:00 2001 From: zefie Date: Sun, 22 Jun 2025 15:11:10 -0400 Subject: [PATCH] dont send to timed out socket --- zefie_wtvp_minisrv/includes/classes/WTVIRC.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js index 63a2b463..2770f64f 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js @@ -276,10 +276,10 @@ class WTVIRC { socket.upgrading_to_tls = false; socket.error_count = 0; await this.doInitialHandshake(socket); - + socket.on('timeout', () => { this.debugLog('warn', `Socket timeout for ${socket.remoteAddress}`); - this.broadcastUser(socket.nickname, `:${socket.nickname}!${socket.username}@${socket.host} QUIT :Ping Timeout (${this.socket_timeout / 1000} seconds)\r\n`); + this.broadcastUser(socket.nickname, `:${socket.nickname}!${socket.username}@${socket.host} QUIT :Ping Timeout (${this.socket_timeout / 1000} seconds)\r\n`, socket); this.terminateSession(socket, true); });