Set a curl timeout on binary cache lookups

This commit is contained in:
Eelco Dolstra 2014-08-21 15:15:50 +02:00
parent 524f89f139
commit 163fdf292e

View file

@ -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;