Improved healthcheck, idlewatcher support for loadbalanced routes, bug fixes

This commit is contained in:
yusing
2024-10-15 15:34:27 +08:00
parent 53fa28ae77
commit f4d532598c
34 changed files with 568 additions and 423 deletions

View File

@@ -43,7 +43,9 @@ func init() {
select {
case <-task.Context().Done():
clientMap.RangeAllParallel(func(_ string, c Client) {
c.Client.Close()
if c.Connected() {
c.Client.Close()
}
})
clientMap.Clear()
return