From 4da6bd4078e71db1444f908568a5086b6cbf7a03 Mon Sep 17 00:00:00 2001 From: Lionel VICTOR <44619354+tchinchow@users.noreply.github.com> Date: Mon, 19 Jan 2026 21:04:20 +0100 Subject: [PATCH] fix: listen to the "session" tls event instead of the more ambiguous "secureConnect" that can be triggered before an "error" on TLSv1.3 #6771 --- server/monitor-types/tcp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/monitor-types/tcp.js b/server/monitor-types/tcp.js index afb4867c7..85f90310d 100644 --- a/server/monitor-types/tcp.js +++ b/server/monitor-types/tcp.js @@ -353,7 +353,7 @@ class TCPMonitorType extends MonitorType { reject(new Error("TLS connection timed out")); }, timeout); - socket.on("secureConnect", () => { + socket.on("session", () => { clearTimeout(timeoutId); const responseTime = Date.now() - startTime;