From b14f63491d4d872929cd6a4cc799ecefe2599f61 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Wed, 11 Aug 2021 23:12:38 +0800 Subject: [PATCH] timeout change to 80% of its interval --- server/model/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 2520c282..b8df3830 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -110,7 +110,7 @@ class Monitor extends BeanModel { // Use Custom agent to disable session reuse // https://github.com/nodejs/node/issues/3940 let res = await axios.get(this.url, { - timeout: 15000, + timeout: this.interval * 1000 * 0.8, headers: { "Accept": "*/*", "User-Agent": "Uptime-Kuma",