Skip to content

Commit ee07b15

Browse files
committed
Added a connection timeout and speed threshold when downloading the Docker cache
1 parent e1c6d00 commit ee07b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ci/docker/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
3131
echo "Attempting to download $s3url"
3232
rm -f /tmp/rustci_docker_cache
3333
set +e
34-
retry curl -f -L -C - -o /tmp/rustci_docker_cache "$url"
34+
retry curl -y 30 -Y 10 --connect-timeout 30 -f -L -C - -o /tmp/rustci_docker_cache "$url"
3535
loaded_images=$(docker load -i /tmp/rustci_docker_cache | sed 's/.* sha/sha/')
3636
set -e
3737
echo "Downloaded containers:\n$loaded_images"

0 commit comments

Comments
 (0)