From f178a0b654b57e5eb443cee76cd3170bfef0bc4a Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Wed, 7 Feb 2001 10:45:52 +0000 Subject: now fully fixed ftp connection (and http too) caused by forked DrakX with latent ftp connection. --- perl-install/ftp.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/ftp.pm') diff --git a/perl-install/ftp.pm b/perl-install/ftp.pm index b21058c30..7784bb529 100644 --- a/perl-install/ftp.pm +++ b/perl-install/ftp.pm @@ -50,14 +50,14 @@ sub new { sub getFile { my ($f, @para) = @_; + $f eq 'XXX' and rewindGetFile(), return; #- special case to force closing connection. foreach (1..3) { my ($ftp, $retr) = new(@para ? @para : fromEnv); $$retr->close if $$retr; - $f eq 'XXX' and return; #- special case to force closing connection on CD, really necessary here! $$retr = $ftp->retr($f) and return $$retr; rewindGetFile(); log::l("ftp get failed, sleeping before trying again"); - sleep 2; + sleep 1; } } -- cgit v1.2.1