Browse Source

timeout change to 80% of its interval

pull/211/head
LouisLam 4 years ago
parent
commit
b14f63491d
  1. 2
      server/model/monitor.js

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

Loading…
Cancel
Save