From c80c34ef458634e67130239b9416d7294a2d72d6 Mon Sep 17 00:00:00 2001 From: Heri Sim Date: Tue, 16 Jan 2018 12:00:59 +0800 Subject: [PATCH] proxy: Turn on KeepAlive in QuicConfig of RoundTripper (#1943) * Turn on KeepAlive in QuicConfig of RoundTripper * Update reverseproxy.go --- caddyhttp/proxy/reverseproxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/caddyhttp/proxy/reverseproxy.go b/caddyhttp/proxy/reverseproxy.go index 2fac5aabc..d48894ff1 100644 --- a/caddyhttp/proxy/reverseproxy.go +++ b/caddyhttp/proxy/reverseproxy.go @@ -240,6 +240,7 @@ func NewSingleHostReverseProxy(target *url.URL, without string, keepalive int) * rp.Transport = &h2quic.RoundTripper{ QuicConfig: &quic.Config{ HandshakeTimeout: defaultCryptoHandshakeTimeout, + KeepAlive: true, }, } } else if keepalive != http.DefaultMaxIdleConnsPerHost || strings.HasPrefix(target.Scheme, "srv") {