guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

155/376: Set a curl timeout on binary cache lookups


From: Ludovic Courtès
Subject: 155/376: Set a curl timeout on binary cache lookups
Date: Wed, 28 Jan 2015 22:04:42 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit 163fdf292e5368e8102f34f246547ba992e5cab4
Author: Eelco Dolstra <address@hidden>
Date:   Thu Aug 21 15:15:50 2014 +0200

    Set a curl timeout on binary cache lookups
---
 scripts/download-from-binary-cache.pl.in |    1 +
 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 b7eb72a..e09b051 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]