mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-04-20 07:36:05 -04:00
use fraction of interval for timeout
This commit is contained in:
parent
1cb5a52e7b
commit
a1bfc21ef4
@ -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"));
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user