1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-24 22:14:47 +02:00

timeout change to 80% of its interval

This commit is contained in:
LouisLam 2021-08-11 23:12:38 +08:00
parent 24b87fcd5a
commit b14f63491d

View File

@ -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",