From 8885f6b861ea8721711ad7d9030593968a62e959 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Thu, 10 Apr 2025 13:06:22 +0200 Subject: [PATCH] defaults/config.yaml: timeout at 30s by default (#50002) Fetching generated tarballs from github.com sometimes takes pauses for more than 10 seconds, when the server is slow to put together the next bits of the tarball. Default to 30s to avoid that issue. --- etc/spack/defaults/config.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/etc/spack/defaults/config.yaml b/etc/spack/defaults/config.yaml index 9cca52fd353..7d6f444b7e3 100644 --- a/etc/spack/defaults/config.yaml +++ b/etc/spack/defaults/config.yaml @@ -90,10 +90,9 @@ config: misc_cache: $user_cache_path/cache - # Timeout in seconds used for downloading sources etc. This only applies - # to the connection phase and can be increased for slow connections or - # servers. 0 means no timeout. - connect_timeout: 10 + # Abort downloads after this many seconds if not data is received. + # Setting this to 0 will disable the timeout. + connect_timeout: 30 # If this is false, tools like curl that use SSL will not verify