From c71d63e301d75423acb410203c747cad31e9a5e7 Mon Sep 17 00:00:00 2001 From: Steven Buss Date: Thu, 19 Sep 2019 14:55:17 -0700 Subject: [PATCH] internal: Increase limitDial timeout from 500ms to 10s (#210) Increase internal.limitDial's timeout from 500ms to 10s, to account for differences in the go111 legacy API endpoint. --- internal/net.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/net.go b/internal/net.go index 3b94cf0..fe42972 100644 --- a/internal/net.go +++ b/internal/net.go @@ -32,7 +32,7 @@ func limitDial(network, addr string) (net.Conn, error) { // Dial with a timeout in case the API host is MIA. // The connection should normally be very fast. - conn, err := net.DialTimeout(network, addr, 500*time.Millisecond) + conn, err := net.DialTimeout(network, addr, 10*time.Second) if err != nil { limitRelease() return nil, err