From 7247939b32241efd9b6d8ebe8a7f7e269632f301 Mon Sep 17 00:00:00 2001 From: Iain Proctor Date: Mon, 30 Sep 2019 04:24:53 -0400 Subject: [PATCH] Fix "redis: discarding bad PubSub connection" stuck state (#1162) * Reset healthy on reconnect --- pubsub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pubsub.go b/pubsub.go index c465078..e116409 100644 --- a/pubsub.go +++ b/pubsub.go @@ -468,6 +468,7 @@ func (c *PubSub) initPing() { } c.mu.Lock() c.reconnect(pingErr) + healthy = true c.mu.Unlock() } case <-c.exit: