mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-12 02:28:11 +02:00
parent
33ce0ef02c
commit
bf58838b89
@ -483,7 +483,7 @@ class Monitor extends BeanModel {
|
||||
validateStatus: (status) => {
|
||||
return checkStatusCode(status, this.getAcceptedStatuscodes());
|
||||
},
|
||||
signal: axiosAbortSignal(this.timeout * 1000),
|
||||
signal: axiosAbortSignal((this.timeout + 10) * 1000),
|
||||
};
|
||||
|
||||
if (bodyValue) {
|
||||
|
@ -1141,7 +1141,6 @@ module.exports.axiosAbortSignal = (timeoutMs) => {
|
||||
// v16-: AbortSignal.timeout is not supported
|
||||
try {
|
||||
const abortController = new AbortController();
|
||||
|
||||
setTimeout(() => abortController.abort(), timeoutMs);
|
||||
|
||||
return abortController.signal;
|
||||
|
Loading…
Reference in New Issue
Block a user