mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Increase default connection timeout to 30s
Closes #13307 Signed-off-by: James Lal <jlal@mozilla.com>
This commit is contained in:
parent
aac645ae04
commit
f5e6f50a1e
1 changed files with 3 additions and 2 deletions
|
@ -52,8 +52,9 @@ func newClient(jar http.CookieJar, roots *x509.CertPool, certs []tls.Certificate
|
|||
switch timeout {
|
||||
case ConnectTimeout:
|
||||
httpTransport.Dial = func(proto string, addr string) (net.Conn, error) {
|
||||
// Set the connect timeout to 5 seconds
|
||||
d := net.Dialer{Timeout: 5 * time.Second, DualStack: true}
|
||||
// Set the connect timeout to 30 seconds to allow for slower connection
|
||||
// times...
|
||||
d := net.Dialer{Timeout: 30 * time.Second, DualStack: true}
|
||||
|
||||
conn, err := d.Dial(proto, addr)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue