test default http client

This commit is contained in:
Andre Medeiros 2022-07-13 16:38:10 -04:00
parent 94d3941005
commit 556c1dd9b2

View file

@ -88,6 +88,7 @@ func NewClient(id, secret string, statsd statsd.ClientInterface, redis *redis.Cl
}, },
} }
/*
t := http.DefaultTransport.(*http.Transport).Clone() t := http.DefaultTransport.(*http.Transport).Clone()
t.MaxIdleConns = connLimit / 4 / 100 t.MaxIdleConns = connLimit / 4 / 100
t.MaxConnsPerHost = connLimit / 100 t.MaxConnsPerHost = connLimit / 100
@ -96,6 +97,8 @@ func NewClient(id, secret string, statsd statsd.ClientInterface, redis *redis.Cl
t.ResponseHeaderTimeout = 5 * time.Second t.ResponseHeaderTimeout = 5 * time.Second
client := &http.Client{Transport: t} client := &http.Client{Transport: t}
*/
client := &http.Client{}
pool := &fastjson.ParserPool{} pool := &fastjson.ParserPool{}