Merge pull request #44 from harnnless/patch-1

Fix HTTP2 support fix #43
This commit is contained in:
Musab Gültekin 2021-12-11 14:04:10 +03:00 committed by GitHub
commit 34d17a2d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,7 @@ func NewClient(opt *Options) *Client {
KeepAlive: 30 * time.Second, KeepAlive: 30 * time.Second,
DualStack: true, DualStack: true,
}).DialContext, }).DialContext,
ForceAttemptHTTP2: true,
MaxIdleConns: 0, // Default: 100 MaxIdleConns: 0, // Default: 100
MaxIdleConnsPerHost: 1000, // Default: 2 MaxIdleConnsPerHost: 1000, // Default: 2
IdleConnTimeout: 90 * time.Second, IdleConnTimeout: 90 * time.Second,