Set a curl timeout on binary cache lookups
This commit is contained in:
parent
524f89f139
commit
163fdf292e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue