summaryrefslogtreecommitdiff
path: root/scripts/healthchecks
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2024-03-20 18:39:14 +0000
committerZach van Rijn <me@zv.io>2024-03-20 18:39:22 +0000
commit598b8ea82ba27a464e3549dd088616cc8ef40fc1 (patch)
tree2fb57600c70783eb00ffe38838ce9c2d1bd0a0cb /scripts/healthchecks
parentc7193dcd4cea8d25d9832146d37bfee08ec7b3df (diff)
downloadpackages-598b8ea82ba27a464e3549dd088616cc8ef40fc1.tar.gz
packages-598b8ea82ba27a464e3549dd088616cc8ef40fc1.tar.bz2
packages-598b8ea82ba27a464e3549dd088616cc8ef40fc1.tar.xz
packages-598b8ea82ba27a464e3549dd088616cc8ef40fc1.zip
scripts/healthchecks: increase timeout.
This script is used by: https://distfiles.adelielinux.org/source/archive/ and recently, some tarballs were failing to download: 28 system/skalibs skalibs-2.14.1.1.tar.gz 28 user/apaste apaste-0.0.2.0.tar.gz The connection completes after ~60 seconds. A real-world example: one of our networks does not have a PTR record for the WAN address through which we are connecting to the Internet. 1.253.98.38.in-addr.arpa. 43188 IN PTR zv.io. 254.42.232.104.in-addr.arpa. 1200 IN PTR zv.io. (empty) When connecting to a server like skarnet.org, which enables DNS lookup for logging purposes, the connection will hang for up to 60 seconds (default). <+skarnet> check the PTR resolution for your IP address, because something's wrong with it. It should either answer something, or answer nodata, but it should *answer* Until we investigate/fix that, use a 2-minute timeout.
Diffstat (limited to 'scripts/healthchecks')
-rwxr-xr-xscripts/healthchecks2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/healthchecks b/scripts/healthchecks
index ae313bb1e..ab3abee32 100755
--- a/scripts/healthchecks
+++ b/scripts/healthchecks
@@ -58,7 +58,7 @@ try_down ()
##
# Download the file and set global 'okay' to curl retval.
#
- curl --connect-timeout 10 -sLo "${TEMP}/${name}" "${down}" || okay=${?};
+ curl --connect-timeout 120 -sLo "${TEMP}/${name}" "${down}" || okay=${?};
##