mirror of
https://github.com/christianselig/apollo-backend
synced 2024-12-22 14:25:28 +00:00
test default http client
This commit is contained in:
parent
94d3941005
commit
556c1dd9b2
1 changed files with 10 additions and 7 deletions
|
@ -88,14 +88,17 @@ func NewClient(id, secret string, statsd statsd.ClientInterface, redis *redis.Cl
|
|||
},
|
||||
}
|
||||
|
||||
t := http.DefaultTransport.(*http.Transport).Clone()
|
||||
t.MaxIdleConns = connLimit / 4 / 100
|
||||
t.MaxConnsPerHost = connLimit / 100
|
||||
t.MaxIdleConnsPerHost = connLimit / 4 / 100
|
||||
t.IdleConnTimeout = 60 * time.Second
|
||||
t.ResponseHeaderTimeout = 5 * time.Second
|
||||
/*
|
||||
t := http.DefaultTransport.(*http.Transport).Clone()
|
||||
t.MaxIdleConns = connLimit / 4 / 100
|
||||
t.MaxConnsPerHost = connLimit / 100
|
||||
t.MaxIdleConnsPerHost = connLimit / 4 / 100
|
||||
t.IdleConnTimeout = 60 * time.Second
|
||||
t.ResponseHeaderTimeout = 5 * time.Second
|
||||
|
||||
client := &http.Client{Transport: t}
|
||||
client := &http.Client{Transport: t}
|
||||
*/
|
||||
client := &http.Client{}
|
||||
|
||||
pool := &fastjson.ParserPool{}
|
||||
|
||||
|
|
Loading…
Reference in a new issue