refactor: optimize connection health checks to reduce log stream interference; adjust health check intervals and implement non-blocking pings

This commit is contained in:
Marvin Zhang
2025-08-16 17:42:07 +08:00
parent 65aeb3ed8c
commit 3edd2a1210
3 changed files with 41 additions and 12 deletions

View File

@@ -157,6 +157,9 @@ func (r *Runner) handleIPCInsertDataMessage(ipcMsg entity.IPCMessage) {
}
return
}
// Update last successful connection time to help health check avoid unnecessary pings
r.lastConnCheck = time.Now()
}
}