Skip to content

Commit

Permalink
Merge pull request kubernetes#24213 from mikedanese/max-time
Browse files Browse the repository at this point in the history
add a timeout for a single retry in download-or-bust
  • Loading branch information
lavalamp committed Apr 14, 2016
2 parents d8532e0 + 8e8c55a commit 7e666e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/gce/configure-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ download-or-bust() {
for url in "${urls[@]}"; do
local file="${url##*/}"
rm -f "${file}"
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --retry 6 --retry-delay 10 "${url}"; then
if ! curl -f --ipv4 -Lo "${file}" --connect-timeout 20 --max-time 80 --retry 6 --retry-delay 10 "${url}"; then
echo "== Failed to download ${url}. Retrying. =="
elif [[ -n "${hash}" ]] && ! validate-hash "${file}" "${hash}"; then
echo "== Hash validation of ${url} failed. Retrying. =="
Expand Down

0 comments on commit 7e666e0

Please sign in to comment.