From 1fea6b46c285367fd735cc56b24b392ad01cfb73 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 22 May 2024 08:22:11 -0400 Subject: [PATCH] feat: add timeout and retry to web_check() --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index 18f16c9..93eb0b7 100755 --- a/quickget +++ b/quickget @@ -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() {