Skip to content

Commit 8fb0ad6

Browse files
committed
packages - increase curl timeout for remote file exists check to 10 seconds
Some users reported issues and it was taking between 5 and 6 seconds - which points to an connectivity issue really, as it's a small HEAD request. However increasing the timeout will help for these users. This is a quick fix, as I will look into improving the error msgs also.
1 parent b3c1d15 commit 8fb0ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ function rp_getBinaryUrl() {
424424
function rp_remoteFileExists() {
425425
local url="$1"
426426
local ret
427-
curl --max-time 5 -o /dev/null -sfI "$url"
427+
curl --max-time 10 -o /dev/null -sfI "$url"
428428
ret="$?"
429429
if [[ "$ret" -eq 0 ]]; then
430430
return 0

0 commit comments

Comments
 (0)