Skip to content

Commit 7247939

Browse files
Iain Proctorvmihailenco
authored andcommitted
Fix "redis: discarding bad PubSub connection" stuck state (#1162)
* Reset healthy on reconnect
1 parent fd834ae commit 7247939

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pubsub.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ func (c *PubSub) initPing() {
468468
}
469469
c.mu.Lock()
470470
c.reconnect(pingErr)
471+
healthy = true
471472
c.mu.Unlock()
472473
}
473474
case <-c.exit:

0 commit comments

Comments
 (0)