about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-21T13·15+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-21T13·15+0200
commit163fdf292e5368e8102f34f246547ba992e5cab4 (patch)
tree5eb35fb96c90b5a57f308cf6ea3ed10e71389af6 /scripts
parent524f89f1399724e596f61faba2c6861b1bb7b9c5 (diff)
Set a curl timeout on binary cache lookups
Diffstat (limited to 'scripts')
-rw-r--r--scripts/download-from-binary-cache.pl.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in
index b7eb72a30187..e09b051a4aa6 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;