MaxRedirects for network error retry #2055
Unanswered
bagusardians
asked this question in
Q&A
Replies: 1 comment
-
From what I see, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Currently im using the latest go-redis, specifically the cluster. From what i know, go-redis has MaxRetries, to set how many times it can retry to call redis. My plan is to set the Retries to 0, which means it will just fail fast when there is any error, and goes to DB. But, when there is a network error, it still retries using the MaxRedirects. Based on the comments, it seems intentional. May i know, what is the reason the network error still retried using MaxRedirects? And is there any configuration alternative if i dont want to do retry on network error, but i still want to use MaxRedirects for MOVED error related.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions