From be1afe8060ac20fd9e3f808d012b6af179b5e73b Mon Sep 17 00:00:00 2001
From: Jiri Slaby <jslaby@suse.cz>
Date: May 19 2025 06:54:03 +0000
Subject: scripts/common-functions: lower curl's connection timeout


Set it to 2 seconds. Either it can reach the server or not...

ftp.suse.com is currently unreachable and it takes minutes to have a
reply from check-kernel-fixes.

---

diff --git a/scripts/common-functions b/scripts/common-functions
index 2022133..01528dc 100644
--- a/scripts/common-functions
+++ b/scripts/common-functions
@@ -21,7 +21,7 @@ fetch_cache()
         echo $CACHE_FILE
         return
     fi
-    curl --fail -L "$CACHE_URL" -o "$CACHE_FILE" >/dev/null 2>&1
+    curl --fail --connect-timeout 2 -L "$CACHE_URL" -o "$CACHE_FILE" >/dev/null 2>&1
     [ -e "$CACHE_FILE" ] || fail "unable to fetch $CACHE_URL"
     echo $CACHE_FILE
 }