fix: listen to the "session" tls event instead of the more ambiguous "secureConnect" that can be triggered before an "error" on TLSv1.3 #6771
This commit is contained in:
parent
f8652c27af
commit
4da6bd4078
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user