go-redis
go-redis copied to clipboard
fix:redirect only when meet move|ask|loading|readonly err
redirect only when meet move|ask|loading|readonly err, when meet other err, such as network ,should not retry request in redirect loop, network err request should be retry by maxretries. if we did retry in redirect loop, there may be maxretries*maxredirect request. in other way, if we set maxretries to 0, but it may actually did retry when meet network err, which is not consistency with what option set.
fix #2096
@vmihailenco PTAL
We need more opinions on this and some tests. Otherwise, it is very likely that we break something unintentionally.