File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,12 @@ func (b *randomBalancer) Next(c echo.Context) *ProxyTarget {
228
228
return b .targets [b .random .Intn (len (b .targets ))]
229
229
}
230
230
231
- // Next returns an upstream target using round-robin technique.
231
+ // Next returns an upstream target using round-robin technique. In the case
232
+ // where a previously failed request is being retried, the round-robin
233
+ // balancer will attempt to use the next target relative to the original
234
+ // request. If the list of targets held by the balancer is modified while a
235
+ // failed request is being retried, it is possible that the balancer will
236
+ // return the original failed target.
232
237
//
233
238
// Note: `nil` is returned in case upstream target list is empty.
234
239
func (b * roundRobinBalancer ) Next (c echo.Context ) * ProxyTarget {
You can’t perform that action at this time.
0 commit comments