From 598b8ea82ba27a464e3549dd088616cc8ef40fc1 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 20 Mar 2024 18:39:14 +0000 Subject: 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. --- scripts/healthchecks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=${?}; ## -- cgit v1.2.3-60-g2f50