Fix the watchdog being too aggressive.

This commit is contained in:
2025-11-24 13:19:44 +00:00
parent 2fdc5912e7
commit 39fe4286b4
3 changed files with 49 additions and 24 deletions
+6
View File
@@ -313,6 +313,12 @@ func (c *Checker) checkPort(forwardID string) {
health.Status = newStatus
health.LastCheck = now
health.ErrorMessage = errorMsg
// Successful health check indicates connection is active
// This prevents false positives where healthy connections are marked as idle
if newStatus == StatusHealthy {
health.LastActivity = now
}
}
c.mu.Unlock()