Make the upstream HTTP/2 attempt configurable on the proxy transports

This commit is contained in:
Viktor Liu
2026-09-03 15:12:44 +02:00
parent 7c1253004b
commit fc2189bb49
4 changed files with 65 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func NewMultiTransport(embedded http.RoundTripper, logger *log.Logger) *MultiTra
}
direct := &http.Transport{
DialContext: dialWithTimeout(dialer.DialContext),
ForceAttemptHTTP2: true,
ForceAttemptHTTP2: cfg.forceAttemptHTTP2,
MaxIdleConns: cfg.maxIdleConns,
MaxIdleConnsPerHost: cfg.maxIdleConnsPerHost,
MaxConnsPerHost: cfg.maxConnsPerHost,