mirror of
https://github.com/redis/go-redis.git
synced 2025-07-26 19:21:03 +03:00
Retry BadConnError
This commit is contained in:
@ -809,7 +809,7 @@ func (c *ClusterClient) process(ctx context.Context, cmd Cmder) error {
|
||||
continue
|
||||
}
|
||||
|
||||
if isRetryableError(err, true) {
|
||||
if isRetryableError(err, cmd.readTimeout() == nil) {
|
||||
// First retry the same node.
|
||||
if attempt == 0 {
|
||||
continue
|
||||
|
Reference in New Issue
Block a user