Re: CPAN -- why always so long?

2004-03-09 Thread Ken Williams
On Tuesday, March 9, 2004, at 09:53  AM, Michael wrote:

I also encounter this problem.

But for me this isn't resolved until i install CPAN.pm new via make, 
... Then it works the first couple of times and then again it just 
does nothing. The fun part is that i can login to the ftp-server 
cpan.pm tries. I can log in but the module can't.
Sounds like maybe you need to use a passive FTP connection.  Try 
setting your environment variable FTP_PASSIVE to 1.

Failing that, try just using an HTTP download URL.  I generally use 
http://www.cpan.org/ because it works from behind more firewalls, and I 
roam with an iBook.

 -Ken



CPAN -- why always so long?

2004-03-05 Thread John Delacour
I've been meaning to ask this question for months but never got round to it.

Why is it that when I try to use cpan for the first time after a 
little while it takes an age for it to contact the sites and get 
going?  I always have to go away and do something else and it might 
take 5 minutes for cpan to sart doing anything useful.

Here's a typical transcript of what happens before the long wait:

CPAN: Storable loaded ok
Going to read /Users/jd/.cpan/Metadata
  Database was generated on Wed, 03 Mar 2004 05:50:41 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
LWP failed with code[400] message[FTP return code 000]
Fetching with Net::FTP:
  ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
JD


Re: CPAN -- why always so long?

2004-03-05 Thread Sherm Pendley
On Mar 5, 2004, at 4:04 AM, John Delacour wrote:

Why is it that when I try to use cpan for the first time after a 
little while it takes an age for it to contact the sites and get 
going?  I always have to go away and do something else and it might 
take 5 minutes for cpan to sart doing anything useful.
Two things come to mind - neither is authoritative, so adjust sodium 
levels accordingly.

The first is, cpan.org is a nonprofit on a limited budget, and 
ftp.cpan.org is not the fastest server on the planet. It gets hit 
*hard*.

The second is, I *think* that it tries a non-passive FTP transfer 
first. If you're behind a firewall - which many of us are these days, 
with shared broadband connections - that transfer will time out, and 
then it retries the transfer in passive mode. I think it uses the 
results of this initial test to establish the default passive setting 
in Config.pm.

sherm--



Re: CPAN -- why always so long?

2004-03-05 Thread Joseph Alotta
It goes through all the ftp sites you have listed and tries to find
on that will allow logins.
Does anyone know how to reset the list of ftp sites?  Which ones are
most available?
Joe.

On Mar 5, 2004, at 3:04 AM, John Delacour wrote:

I've been meaning to ask this question for months but never got round 
to it.

Why is it that when I try to use cpan for the first time after a 
little while it takes an age for it to contact the sites and get 
going?  I always have to go away and do something else and it might 
take 5 minutes for cpan to sart doing anything useful.

Here's a typical transcript of what happens before the long wait:

CPAN: Storable loaded ok
Going to read /Users/jd/.cpan/Metadata
  Database was generated on Wed, 03 Mar 2004 05:50:41 GMT
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
LWP failed with code[400] message[FTP return code 000]
Fetching with Net::FTP:
  ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
JD




Re: CPAN -- why always so long?

2004-03-05 Thread Conrad Schilbe
# perl -MCPAN -eshell
Cpan  o conf init

This will allow you to configure CPAN, one of the steps is to select FTP
sites. You can select based on geographical region and can also enter your
own.

I've never had a problem with speed and usually select multiple sites when
configuring.

... Checking validity of my statements ...

Actually appears that some of the hosts in my list are unreachable, taking
some time to get a list of hosts... It tries LWP twice, presumably passive
and non passive, then Net::FTP twice, then goes to the next host.

Not a bad idea to update your sources once in a while I guess.

C

On 3/5/04 9:08 AM, Joseph Alotta [EMAIL PROTECTED] wrote:

 It goes through all the ftp sites you have listed and tries to find
 on that will allow logins.
 
 Does anyone know how to reset the list of ftp sites?  Which ones are
 most available?
 
 Joe.
 
 
 On Mar 5, 2004, at 3:04 AM, John Delacour wrote:
 
 I've been meaning to ask this question for months but never got round
 to it.
 
 Why is it that when I try to use cpan for the first time after a
 little while it takes an age for it to contact the sites and get
 going?  I always have to go away and do something else and it might
 take 5 minutes for cpan to sart doing anything useful.
 
 Here's a typical transcript of what happens before the long wait:
 
 
 CPAN: Storable loaded ok
 Going to read /Users/jd/.cpan/Metadata
   Database was generated on Wed, 03 Mar 2004 05:50:41 GMT
 CPAN: LWP::UserAgent loaded ok
 Fetching with LWP:
   ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
 LWP failed with code[400] message[FTP return code 000]
 Fetching with Net::FTP:
   ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
 
 
 JD