summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 603adaf0..1c3ff0ae 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -10,7 +10,7 @@ our $PROXY_CFG = '/etc/urpmi/proxy.cfg';
my $proxy_config;
#- Timeout for curl connection (in seconds)
-our $CONNECT_TIMEOUT = 30;
+our $CONNECT_TIMEOUT = 60;
sub basename { local $_ = shift; s|/*\s*$||; s|.*/||; $_ }
@@ -183,6 +183,7 @@ sub sync_wget {
($options->{callback} ? ("--progress=bar:force", "-o", "-") :
$options->{quiet} ? "-q" : @{[]}),
"--retr-symlinks",
+ "--connect-timeout=$CONNECT_TIMEOUT",
"-NP",
$options->{dir},
@_