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 7bd2fe0 commit ab49a4bCopy full SHA for ab49a4b
functions/http_runner.go
@@ -129,11 +129,12 @@ func makeProxyClient(dialTimeout time.Duration) *http.Client {
129
Proxy: http.ProxyFromEnvironment,
130
DialContext: (&net.Dialer{
131
Timeout: dialTimeout,
132
- KeepAlive: 1,
+ KeepAlive: 10 * time.Second,
133
}).DialContext,
134
- MaxIdleConns: 1,
135
- DisableKeepAlives: true,
136
- IdleConnTimeout: 120 * time.Millisecond,
+ MaxIdleConns: 100,
+ MaxIdleConnsPerHost: 100,
+ DisableKeepAlives: false,
137
+ IdleConnTimeout: 500 * time.Millisecond,
138
ExpectContinueTimeout: 1500 * time.Millisecond,
139
},
140
}
0 commit comments