go-redis icon indicating copy to clipboard operation
go-redis copied to clipboard

fix:redirect only when meet move|ask|loading|readonly err

Open lintanghui opened this issue 2 years ago • 3 comments

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.

lintanghui avatar May 29 '22 09:05 lintanghui

fix #2096

lintanghui avatar May 30 '22 10:05 lintanghui

@vmihailenco PTAL

lintanghui avatar Jun 07 '22 01:06 lintanghui

We need more opinions on this and some tests. Otherwise, it is very likely that we break something unintentionally.

vmihailenco avatar Jun 07 '22 06:06 vmihailenco