mirror of
https://github.com/lukaszraczylo/kportal.git
synced 2026-07-16 08:04:43 +00:00
Fix the watchdog being too aggressive.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user