diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-25 01:47:38 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-25 01:47:38 +0000 |
commit | f7547c9e152486334b417e69337782389d372c4f (patch) | |
tree | 3a6c4682a8969eb3bace23a8eb437e158a1fa695 /urpm | |
parent | fd7ff9fec44844ef23e4dc1693dc778cb32cf166 (diff) | |
download | urpmi-f7547c9e152486334b417e69337782389d372c4f.tar urpmi-f7547c9e152486334b417e69337782389d372c4f.tar.gz urpmi-f7547c9e152486334b417e69337782389d372c4f.tar.bz2 urpmi-f7547c9e152486334b417e69337782389d372c4f.tar.xz urpmi-f7547c9e152486334b417e69337782389d372c4f.zip |
Set a timeout for wget too (1 min)
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/download.pm | 3 |
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}, @_ |