Skip to content

Commit ecbeb5d

Browse files
committed
add MaxIdleConnsPerHost custom
1 parent 49f755a commit ecbeb5d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • aws/logs_monitoring_go/internal/forwarding

aws/logs_monitoring_go/internal/forwarding/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var Client = newClient()
2424
func newClient() *http.Client {
2525
transport := http.DefaultTransport.(*http.Transport).Clone()
2626
transport.TLSHandshakeTimeout = tlsHandshakeTimeout
27+
transport.MaxIdleConnsPerHost = maxConcurrency
2728
transport.DialContext = (&net.Dialer{
2829
Timeout: dialContextTimeout,
2930
KeepAlive: dialContextKeepAlive,

0 commit comments

Comments
 (0)