We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d6c0df commit 6d7f047Copy full SHA for 6d7f047
worker/deliverer/http.go
@@ -17,7 +17,15 @@ type HTTPDeliverer struct {
17
}
18
19
func NewHTTPDeliverer(cfg *config.WorkerDeliverer) *HTTPDeliverer {
20
- client := &http.Client{}
+ client := &http.Client{
21
+ Transport: &http.Transport{
22
+ MaxIdleConns: 1000,
23
+ MaxIdleConnsPerHost: 1000,
24
+ IdleConnTimeout: 30 * time.Second,
25
+ TLSHandshakeTimeout: 5 * time.Second,
26
+ ExpectContinueTimeout: 1 * time.Second,
27
+ },
28
+ }
29
return &HTTPDeliverer{
30
defaultTimeout: time.Duration(cfg.Timeout) * time.Millisecond,
31
client: client,
0 commit comments