mirror of
https://github.com/foomo/gotsrpc.git
synced 2025-10-16 12:35:35 +00:00
chore: force connection re-establishment for LB
This commit is contained in:
parent
adae02a23f
commit
61b52e5e3d
5
http.go
5
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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user