Skip to content

config: Add a new option download_timeout#15212

Merged
scheibelp merged 3 commits intospack:developfrom
michaelkuhn:config-timeout
Feb 27, 2020
Merged

config: Add a new option download_timeout#15212
scheibelp merged 3 commits intospack:developfrom
michaelkuhn:config-timeout

Conversation

@michaelkuhn
Copy link
Copy Markdown
Member

download_timeout can be used to increase the time Spack waits for the server to answer. This can be used to work around slow servers.

Fixes #14700

@scheibelp scheibelp self-assigned this Feb 25, 2020
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 spack#14700
This allows us to support higher-level concepts such as 'cookie' and
'timeout' without users having to specify curl options.
This allows packages to override the global connect_timeout.
Copy link
Copy Markdown
Member

@alalazo alalazo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good in a following PR to avoid having to pass fetch_options to every version in a package.

@robertu94
Copy link
Copy Markdown
Contributor

I think this PR would resolve my issue with timeouts

@scheibelp scheibelp merged commit f580b34 into spack:develop Feb 27, 2020
@scheibelp
Copy link
Copy Markdown
Member

This is great - thanks!

michaelkuhn added a commit to michaelkuhn/spack that referenced this pull request Mar 4, 2020
PR spack#15212 added a new connect_timeout option that can be overriden using
fetch_options but had to specified per-version. This adds a new
per-package variable that can be used to override fetch_options.
scheibelp pushed a commit that referenced this pull request Mar 13, 2020
PR #15212 added a new connect_timeout option that can be overridden
using fetch_options but had to specified per-version. This adds a new
per-package variable that can be used to override fetch_options for
all versions in the package. This includes connect_timeout as well
as 'cookie' (e.g. for the jdk package).

Packages can combine package-level fetch_options with per-version
fetch_options, in which case the version fetch_options completely
override the package-level fetch_options.

This commit includes tests for the added behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spack's default timeout is too short

4 participants