feat: add timeout and retry to web_check()
This commit is contained in:
parent
7bfeb7721e
commit
1fea6b46c2
2
quickget
2
quickget
|
@ -1307,7 +1307,7 @@ function web_check() {
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
done
|
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() {
|
function zsync_get() {
|
||||||
|
|
Loading…
Reference in New Issue