Skip to content
Snippets Groups Projects
Commit 598b8ea8 authored by Zach van Rijn's avatar Zach van Rijn
Browse files

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.
parent c7193dcd
No related branches found
No related tags found
No related merge requests found
......@@ -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=${?};
##
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment