Skip to content

Commit 1314730

Browse files
committed
cmake: tweak download command line
To work around MuPDF' slow server: - increase connection timeout time and maximum allowed total time - drop curl retries: we already manually retrying 2 times anyway (in case of possible incorrect checksum)
1 parent 1ccc79f commit 1314730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thirdparty/cmake_modules/koenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ download_archive() { (
8383
for timeout in 0 2 4; do
8484
sleep ${timeout}
8585
for url in "$@"; do
86-
if curl --fail --location --connect-timeout 10 --create-dirs --max-time 30 --retry 3 --output "${dest}" "${url}" && validate_md5 "${dest}" "${md5}"; then
86+
if curl --fail --location --connect-timeout 15 --create-dirs --max-time 120 --output "${dest}" "${url}" && validate_md5 "${dest}" "${md5}"; then
8787
return 0
8888
fi
8989
done

0 commit comments

Comments
 (0)