mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-23 05:01:54 +01:00
fix(status): increase ping timeout from 3 to 10 seconds for improved reliability
This commit is contained in:
@@ -106,7 +106,7 @@ export class StatusService {
|
|||||||
const hosts = this.hosts.filter((value, index) => index < max * max_ping && index >= (max - 1) * max_ping);
|
const hosts = this.hosts.filter((value, index) => index < max * max_ping && index >= (max - 1) * max_ping);
|
||||||
async function fetchAlive(host: Host) {
|
async function fetchAlive(host: Host) {
|
||||||
if(host.type === 'ping'){
|
if(host.type === 'ping'){
|
||||||
let res = await ping.promise.probe(host.host, {timeout: 3});
|
let res = await ping.promise.probe(host.host, {timeout: 10});
|
||||||
host.alive = res.alive;
|
host.alive = res.alive;
|
||||||
}else if(host.type === 'website'){
|
}else if(host.type === 'website'){
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user