summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@informatik.uni-hamburg.de>2020-02-25 16:42:12 +0100
committerPeter Scheibel <scheibel1@llnl.gov>2020-02-27 10:52:52 -0800
commit7325c207941f1dbd9d7cd83f9659eb25951ac1f9 (patch)
treeaee4533ee6f8fa887245a96ff722d57c384b9425 /etc
parentffb9591dc9b58b55c1f0e3a0e00d6232b0b9f3e0 (diff)
downloadspack-7325c207941f1dbd9d7cd83f9659eb25951ac1f9.tar.gz
spack-7325c207941f1dbd9d7cd83f9659eb25951ac1f9.tar.bz2
spack-7325c207941f1dbd9d7cd83f9659eb25951ac1f9.tar.xz
spack-7325c207941f1dbd9d7cd83f9659eb25951ac1f9.zip
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
Diffstat (limited to 'etc')
-rw-r--r--etc/spack/defaults/config.yaml6
1 files changed, 6 insertions, 0 deletions
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