Skip to content

Commit c0feb28

Browse files
committed
fix: instantiate the http.Transport for conn limits
1 parent e3fe626 commit c0feb28

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/util/http/transport.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ func SetCertResolver(resolver func(serverName string) ([]string, error)) {
1515

1616
func NewTransport(rawURL string, insecureSkipVerify bool) *http.Transport {
1717
transport := &http.Transport{
18-
Proxy: http.ProxyFromEnvironment,
18+
Proxy: http.ProxyFromEnvironment,
19+
MaxIdleConns: 0,
20+
MaxIdleConnsPerHost: 0,
21+
MaxConnsPerHost: 0,
22+
IdleConnTimeout: 0,
1923
}
2024
if insecureSkipVerify {
2125
transport.TLSClientConfig = &tls.Config{

0 commit comments

Comments
 (0)