From 163fdf292e5368e8102f34f246547ba992e5cab4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 21 Aug 2014 15:15:50 +0200 Subject: [PATCH] Set a curl timeout on binary cache lookups --- scripts/download-from-binary-cache.pl.in | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in index b7eb72a30..e09b051a4 100644 --- a/scripts/download-from-binary-cache.pl.in +++ b/scripts/download-from-binary-cache.pl.in @@ -68,6 +68,7 @@ sub addRequest { $curl->setopt(CURLOPT_NOBODY, 1) if $head; $curl->setopt(CURLOPT_FAILONERROR, 1); $curl->setopt(CURLOPT_CONNECTTIMEOUT, $curlConnectTimeout); + $curl->setopt(CURLOPT_TIMEOUT, 20 * 60); if ($activeRequests >= $maxParallelRequests) { $scheduled{$curlId} = 1;