Scott W Gifford wrote:
I just uploaded to CPAN some FTP-related modules
(Net::FTP::AutoReconnect and Net::FTP::RetrHandle). In one of the
unit tests, I connect to ftp.cpan.org and retreive MIRRORED.BY to make
sure everything works OK.
Just in the last little bit, though, I've noticed that a connection to
ftp.cpan.org is timing out.
So my questions are:
* Is ftp.cpan.org a reliable way to access CPAN? Is there a more
reliable way, besides looking and MIRRORED.BY?
* Is testing by connecting to CPAN an appropriate thing to do?
I would guess not. Certainly not without asking permission.
* If not, what's a better way to do unit tests for a network
protocol?
Write or bundle a tiny server, or query the user to provide an ftp server?
Thanks for any thoughts!
---ScottG.
Regards,
Randy.