diff --git a/server/monitor-types/tcp.js b/server/monitor-types/tcp.js index b822e05d1..fc99b6acc 100644 --- a/server/monitor-types/tcp.js +++ b/server/monitor-types/tcp.js @@ -45,7 +45,7 @@ class TCPMonitorType extends MonitorType { reject(error); }); - socket.setTimeout(10000, () => { + socket.setTimeout(monitor.interval * 1000 * 0.8, () => { reject(new Error("Connection timed out")); }); });