fix issue 2539, do not kill the keepaliveWorker task when the ping timeout occurs (#2555)
This commit is contained in:
@@ -246,7 +246,7 @@ func (r *RedisRouter) keepaliveWorker(startedChan chan error) {
|
|||||||
for ping := range pings.Channel() {
|
for ping := range pings.Channel() {
|
||||||
if time.Since(time.Unix(ping.Timestamp, 0)) > statsUpdateInterval {
|
if time.Since(time.Unix(ping.Timestamp, 0)) > statsUpdateInterval {
|
||||||
logger.Infow("keep alive too old, skipping", "timestamp", ping.Timestamp)
|
logger.Infow("keep alive too old, skipping", "timestamp", ping.Timestamp)
|
||||||
break
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
r.nodeMu.Lock()
|
r.nodeMu.Lock()
|
||||||
|
|||||||
Reference in New Issue
Block a user