From f7547c9e152486334b417e69337782389d372c4f Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 25 Aug 2004 01:47:38 +0000 Subject: Set a timeout for wget too (1 min) --- urpm/download.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'urpm') 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}, @_ -- cgit v1.2.1