Skip to content

Commit

Permalink
fix(sdk): disable keepAlive (#3430)
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
  • Loading branch information
yesnault committed Oct 10, 2018
1 parent 1cbe80f commit dad6098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/cdsclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ func NewHTTPClient(timeout time.Duration, insecureSkipVerifyTLS bool) *http.Clie
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
KeepAlive: 0 * time.Second,
DualStack: true,
}).DialContext,
MaxIdleConns: 50,
MaxIdleConns: 100,
IdleConnTimeout: 30 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
Expand Down

0 comments on commit dad6098

Please sign in to comment.