summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-23 16:33:22 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-23 16:33:22 +0000
commit42f4c5c2e972306ab7040353eb916337d1cda51b (patch)
treea8e8db03021ccc488eff55bf6e277e99db72cb90 /urpm
parentf73da7283d95a9ffa0710006aa43c1d5bbc1a826 (diff)
downloadurpmi-42f4c5c2e972306ab7040353eb916337d1cda51b.tar
urpmi-42f4c5c2e972306ab7040353eb916337d1cda51b.tar.gz
urpmi-42f4c5c2e972306ab7040353eb916337d1cda51b.tar.bz2
urpmi-42f4c5c2e972306ab7040353eb916337d1cda51b.tar.xz
urpmi-42f4c5c2e972306ab7040353eb916337d1cda51b.zip
increase connect-timeout for aria2
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index d4344d2f..c68132db 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -658,11 +658,11 @@ sub sync_aria2 {
"--follow-metalink=mem",
'--metalink-enable-unique-protocol=false', # so that it can try both ftp and http access on the same server. aria2 will only do this on first calls
'--max-tries=1', # nb: not using $options->{retry}
- '--lowest-speed-limit=20K', "--timeout", 3, # $CONNECT_TIMEOUT,
+ '--lowest-speed-limit=20K', "--timeout", 3,
'--metalink-servers=3', # maximum number of servers to use for one download
'--uri-selector=adaptive', "--server-stat-if=$stat_file", "--server-stat-of=$stat_file",
$options->{is_versioned} ? () : '--max-file-not-found=3', # number of not found errors on different servers before aborting file download
- '--connect-timeout=3',
+ '--connect-timeout=6', # $CONNECT_TIMEOUT,
"-Z", "-j1",
($options->{'limit-rate'} ? "--max-download-limit=" . $options->{'limit-rate'} : ()),
($options->{resume} ? "--continue" : "--allow-overwrite=true"),