Skip to content

Commit

Permalink
bugfix: move MaxInFlightLimit handler chain after RequestClientCompon…
Browse files Browse the repository at this point in the history
…ent (#451)

Signed-off-by: SataQiu <shidaqiu2018@gmail.com>
  • Loading branch information
SataQiu authored Sep 7, 2021
1 parent da0cd00 commit 08cb31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/yurthub/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ func (p *yurtReverseProxy) buildHandlerChain(handler http.Handler) http.Handler
handler = util.WithCacheHeaderCheck(handler)
handler = util.WithRequestTimeout(handler)
handler = util.WithListRequestSelector(handler)
handler = util.WithMaxInFlightLimit(handler, p.maxRequestsInFlight)
handler = util.WithRequestClientComponent(handler)
handler = filters.WithRequestInfo(handler, p.resolver)
handler = util.WithMaxInFlightLimit(handler, p.maxRequestsInFlight)
return handler
}

Expand Down

0 comments on commit 08cb31c

Please sign in to comment.