Skip to content

Commit

Permalink
Set longer timeout for ping (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr committed Nov 17, 2020
1 parent 50fe4c4 commit 144defc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/v1/remote/transport/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func parseChallenge(suffix string) map[string]string {
}

func ping(reg name.Registry, t http.RoundTripper) (*pingResp, error) {
client := http.Client{Transport: t, Timeout: 2 * time.Second}
client := http.Client{Transport: t, Timeout: 120 * time.Second}

// This first attempts to use "https" for every request, falling back to http
// if the registry matches our localhost heuristic or if it is intentionally
Expand Down

0 comments on commit 144defc

Please sign in to comment.