Skip to content

Commit

Permalink
Bump timeout for CLI base URL validity check (#4462)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjirewis authored Oct 18, 2024
1 parent 32ac466 commit 76bb7a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,10 +768,10 @@ func parseBaseURL(baseURL string, verifyConnection bool) (*url.URL, []rpc.DialOp

if verifyConnection {
// Check if URL is even valid with a TCP dial.
conn, err := net.DialTimeout("tcp", baseURLParsed.Host, 3*time.Second)
conn, err := net.DialTimeout("tcp", baseURLParsed.Host, 10*time.Second)
if err != nil {
return nil, nil, fmt.Errorf("base URL %q (needed for auth) is currently unreachable. "+
"Ensure URL is valid and you are connected to internet", baseURLParsed.Host)
return nil, nil, fmt.Errorf("base URL %q (needed for auth) is currently unreachable (%v). "+
"Ensure URL is valid and you are connected to internet", err.Error(), baseURLParsed.Host)
}
utils.UncheckedError(conn.Close())
}
Expand Down

0 comments on commit 76bb7a2

Please sign in to comment.