Skip to content

Commit

Permalink
internal: Increase limitDial timeout from 500ms to 10s (#210)
Browse files Browse the repository at this point in the history
Increase internal.limitDial's timeout from 500ms to 10s, to account for differences in the go111 legacy API endpoint.
  • Loading branch information
sbuss committed Sep 19, 2019
1 parent 5f2a595 commit c71d63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c71d63e

Please sign in to comment.