Skip to content

Commit

Permalink
feat: add timeout and retry to web_check()
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed May 22, 2024
1 parent ae7bdae commit a2c969d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickget
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ function web_check() {
shift
fi
done
curl --silent --location --head --output /dev/null --fail "${HEADERS[@]}" "${URL}"
curl --silent --location --head --output /dev/null --fail --connect-timeout 30 --max-time 30 --retry 3 "${HEADERS[@]}" "${URL}"
}

function zsync_get() {
Expand Down

0 comments on commit a2c969d

Please sign in to comment.