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
This commit is contained in:
Michael Kuhn
2020-02-25 16:42:12 +01:00
committed by Peter Scheibel
parent ffb9591dc9
commit 7325c20794
4 changed files with 14 additions and 2 deletions

View File

@@ -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