From b0fd08c670609fa48f03372a31f282cad55d22fe Mon Sep 17 00:00:00 2001 From: Harm Less Date: Sat, 11 Dec 2021 18:05:17 +0800 Subject: [PATCH] Fix HTTP2 support --- client/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/client.go b/client/client.go index 8b566d8..ec85899 100644 --- a/client/client.go +++ b/client/client.go @@ -68,6 +68,7 @@ func NewClient(opt *Options) *Client { KeepAlive: 30 * time.Second, DualStack: true, }).DialContext, + ForceAttemptHTTP2: true, MaxIdleConns: 0, // Default: 100 MaxIdleConnsPerHost: 1000, // Default: 2 IdleConnTimeout: 90 * time.Second,