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 24, 2024
1 parent 7bfeb77 commit 1fea6b4
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 @@ -1307,7 +1307,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 1fea6b4

Please sign in to comment.