Testing an FTP module
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? * If not, what's a better way to do unit tests for a network protocol? Thanks for any thoughts! ---ScottG.
Re: Testing an FTP module
You might look at my Net::FTP::Common... there are still some places with good FTP connections.On 4/2/06, Scott W Gifford [EMAIL PROTECTED] 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 makesure 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 morereliable way, besides looking and MIRRORED.BY?* Is testing by connecting to CPAN an appropriate thing to do?* If not, what's a better way to do unit tests for a networkprotocol?Thanks for any thoughts! ---ScottG.
Re: Testing an FTP module
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.