|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
CPANplus 5 minute timeoutby Wiggins (Hermit) |
| on Jan 15, 2009 at 18:21 UTC ( [id://736633]=perlquestion: print w/replies, xml ) | Need Help?? |
|
Wiggins has asked for the wisdom of the Perl Monks concerning the following question:
Since starting with Perl 5.10 on my current system, I have been using
CPANplus (CPp (abbreviation overload)) to manage files (I use what's here). And since the beginning I have had a constant problem with a 5 minute pause within almost each command. I would expect that others here might have had this same problem. The explanation of the cause is below. I believe the 5 minutes is an internal CPp/dependancy timeout for an incomplete FTP connection. Where should I look to modify this value to a more reasonable number? CPp starts with a DNS for ftp.cpan.org which returns 3 entries (partial display): The IP 149.20.20.135 is actually mirror1.kernel.org and is the site of interest. This mislabeling(?) is used later in the capture display below. When CPp accesses that site (149.20.20.135 aka mirror1.kernel.org), the last part of the trace looks like this: I removed packet 482-488 since they are arps and such. Note the time(seconds) of packets 479,480,and 489. Blimey.. 5 minutes have elapsed!! At packet 490, the process continues after the timeout. Using wireshark's 'follow' capability, the exchange looks like: CPp is still waiting for the end of the multi-line reply started with the "230-\n" After looking at section 4.2 (multi-line replies) of RFP 959, I see that the kernel.org response is not RFC compliant for multi-line replys. The last 230 must be followed by a <SP>space "230 \n". It is always better to have seen your target for yourself, rather than depend upon someone else's description.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||