forked from lix-project/lix
download-from-binary-cache.pl: Respect $NIX_CONNECT_TIMEOUT
This commit is contained in:
parent
24a356bf71
commit
5c06e5297d
|
@ -59,6 +59,7 @@ sub addRequest {
|
|||
$curl->setopt(CURLOPT_USERAGENT, "Nix/$Nix::Config::version");
|
||||
$curl->setopt(CURLOPT_NOBODY, 1) if $head;
|
||||
$curl->setopt(CURLOPT_FAILONERROR, 1);
|
||||
$curl->setopt(CURLOPT_TIMEOUT, int($ENV{"NIX_CONNECT_TIMEOUT"} // 0));
|
||||
|
||||
if ($activeRequests >= $maxParallelRequests) {
|
||||
$scheduled{$curlId} = 1;
|
||||
|
|
Loading…
Reference in a new issue