From 08cb31ca3befe56aacd38d5d62cba7315ea52023 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Tue, 7 Sep 2021 15:36:13 +0800 Subject: [PATCH] bugfix: move MaxInFlightLimit handler chain after RequestClientComponent (#451) Signed-off-by: SataQiu --- pkg/yurthub/proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/yurthub/proxy/proxy.go b/pkg/yurthub/proxy/proxy.go index c63777a2d2e..28da9d3108b 100644 --- a/pkg/yurthub/proxy/proxy.go +++ b/pkg/yurthub/proxy/proxy.go @@ -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 }