From ef7dfa49fe828aef1919ea2627d20948ce290020 Mon Sep 17 00:00:00 2001 From: 2mal3 <56305732+2mal3@users.noreply.github.com> Date: Mon, 19 Jan 2026 12:43:22 +0100 Subject: [PATCH] chore(control/ping): increase timeout --- control/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/main.go b/control/main.go index e22c47d..4b35913 100644 --- a/control/main.go +++ b/control/main.go @@ -77,13 +77,13 @@ func pingRoute(ctx echo.Context) error { return ctx.JSON(http.StatusBadRequest, PingResponse{Error: "missing 'ip' query parameter"}) } - cmd := exec.Command("ping", "-c", "1", "-w", "1", ip) + cmd := exec.Command("ping", "-c", "1", "-w", "5", ip) result := shared.RunShellCommand(cmd) if result.ExitCode != 0 { return ctx.JSON(http.StatusOK, PingResponse{Status: "host_offline"}) } - conn, err := net.DialTimeout("tcp", ip+":1323", 1*time.Second) + conn, err := net.DialTimeout("tcp", ip+":1323", 5*time.Second) if err != nil { return ctx.JSON(http.StatusOK, PingResponse{Status: "app_offline"}) }