1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

Fix "redis: discarding bad PubSub connection" stuck state (#1162)

* Reset healthy on reconnect
This commit is contained in:
Iain Proctor 2019-09-30 04:24:53 -04:00 committed by Vladimir Mihailenco
parent fd834aed2b
commit 7247939b32

View File

@ -468,6 +468,7 @@ func (c *PubSub) initPing() {
}
c.mu.Lock()
c.reconnect(pingErr)
healthy = true
c.mu.Unlock()
}
case <-c.exit: