From 7325c207941f1dbd9d7cd83f9659eb25951ac1f9 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Tue, 25 Feb 2020 16:42:12 +0100 Subject: config: Add a new option connect_timeout connect_timeout can be used to increase the time Spack waits for the server to answer. This can be used to work around slow connections or servers. Fixes #14700 --- etc/spack/defaults/config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc') diff --git a/etc/spack/defaults/config.yaml b/etc/spack/defaults/config.yaml index 32745a309a..cc51060eae 100644 --- a/etc/spack/defaults/config.yaml +++ b/etc/spack/defaults/config.yaml @@ -75,6 +75,12 @@ config: misc_cache: ~/.spack/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 + + # If this is false, tools like curl that use SSL will not verify # certifiates. (e.g., curl will use use the -k option) verify_ssl: true -- cgit v1.2.3-60-g2f50