From 61b52e5e3d0af8422f9bf12cd174e5feb0562a49 Mon Sep 17 00:00:00 2001 From: Stefan Martinov Date: Wed, 20 Nov 2019 14:17:50 +0100 Subject: [PATCH] chore: force connection re-establishment for LB --- http.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/http.go b/http.go index b1b9b76..1cc6c53 100644 --- a/http.go +++ b/http.go @@ -15,11 +15,8 @@ var defaultHttpFactory HttpClientFactory = func() *http.Client { DialContext: (&net.Dialer{ Timeout: 45 * time.Second, KeepAlive: 45 * time.Second, - DualStack: true, }).DialContext, - MaxIdleConnsPerHost: 20, - MaxIdleConns: 20, - IdleConnTimeout: 5 * time.Minute, + DisableKeepAlives: true, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 5 * time.Second,