Added Wget read-timeout and retry

Configure Wget to retry the download, when no packets are received for 10 seconds, for a total of 3 retries
This commit is contained in:
eweihe 2023-11-05 20:43:13 +01:00 committed by Martin Wimpress
parent 195959a0a9
commit f26a88bc5f

View File

@ -846,7 +846,7 @@ function web_get() {
fi
echo #Necessary as aria2c in suppressed mode does not have new lines
else
if ! wget --quiet --continue --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then
if ! wget --quiet --continue --tries=3 --read-timeout=10 --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then
echo "ERROR! Failed to download ${URL} with wget. Try running 'quickget' again."
exit 1
fi