Permalink
Browse files

Fix timeout logs

  • Loading branch information...
zheng1 committed Jun 5, 2018
1 parent 9713b9d commit 2a90858790369ff162bd8768650f29b73f29eb60
Showing with 1 addition and 7 deletions.
  1. +1 −7 backends/metad/client.go
View
@@ -57,16 +57,10 @@ func NewMetadClient(backendNodes []string) (*Client, error) {
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
KeepAlive: 1 * time.Second,
DualStack: true,
}).DialContext,
MaxIdleConns: 100,
IdleConnTimeout: 90 * time.Second,
TLSHandshakeTimeout: 10 * time.Second,
ExpectContinueTimeout: 1 * time.Second,
},
Timeout: 30 * time.Second,
},
}
connections.Value = connection

0 comments on commit 2a90858

Please sign in to comment.