From 4712d0cf79c0fed1c31318e6fa7db6bb1cc01209 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sat, 15 Nov 2025 16:47:38 +0000 Subject: [PATCH] change(healthcheck): bump tries and timeouts - small periodic check from 10s+20s+30s to 5s+5s+5s+10s+10s+10s+15s+15s+15s+30s - full periodic check from 10s+20s to 10s+15s+30s --- internal/healthcheck/checker.go | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/internal/healthcheck/checker.go b/internal/healthcheck/checker.go index 4dea2802..836cb3c9 100644 --- a/internal/healthcheck/checker.go +++ b/internal/healthcheck/checker.go @@ -131,7 +131,18 @@ func (c *Checker) smallPeriodicCheck(ctx context.Context) error { c.configMutex.Lock() ip := c.icmpTarget c.configMutex.Unlock() - tryTimeouts := []time.Duration{10 * time.Second, 20 * time.Second, 30 * time.Second} + tryTimeouts := []time.Duration{ + 5 * time.Second, + 5 * time.Second, + 5 * time.Second, + 10 * time.Second, + 10 * time.Second, + 10 * time.Second, + 15 * time.Second, + 15 * time.Second, + 15 * time.Second, + 30 * time.Second, + } check := func(ctx context.Context) error { if c.icmpNotPermitted { return c.dnsClient.Check(ctx) @@ -151,7 +162,7 @@ func (c *Checker) smallPeriodicCheck(ctx context.Context) error { func (c *Checker) fullPeriodicCheck(ctx context.Context) error { // 20s timeout in case the connection is under stress // See https://github.com/qdm12/gluetun/issues/2270 - tryTimeouts := []time.Duration{20 * time.Second, 30 * time.Second} + tryTimeouts := []time.Duration{10 * time.Second, 15 * time.Second, 30 * time.Second} check := func(ctx context.Context) error { return tcpTLSCheck(ctx, c.dialer, c.tlsDialAddr) }