From 1d7783bb861c8f028a2633b7e91b435ba29c7bda Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Tue, 6 Oct 2026 19:23:38 +0000 Subject: [PATCH] build: Make conan retry with Conan Center's source backups (#8524) --- conan/global.conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/conan/global.conf b/conan/global.conf index cc803dc801..950bba8819 100644 --- a/conan/global.conf +++ b/conan/global.conf @@ -3,5 +3,13 @@ core:non_interactive=True core.download:parallel={{ os.cpu_count() }} core.upload:parallel={{ os.cpu_count() }} -tools.files.download:retry=5 +# Fall back to Conan Center's source backups when a recipe's upstream URL is down +# (e.g. the GNU FTP mirrors), see +# https://github.com/conan-io/conan-center-index/issues/28147#issuecomment-3183544772 +# The backups are only tried once every upstream URL has used up its retries, +# so keep the retries low. +core.sources:download_urls=["origin", "https://c3i.jfrog.io/artifactory/conan-center-backup-sources"] +tools.files.download:retry=1 tools.files.download:retry_wait=10 +# Fail fast on unreachable hosts (default connect timeout is 30s), keep the 60s read timeout. +core.net.http:timeout=(5, 60)