got time out in ftp

N

news2003

hi guys after download a very big file from an ftp site I got the
following error.

Net::FTP=GLOB(0x38b36c)<<< 150 Opening BINARY mode data connection for
collection.03.tar.gz (745238729 bytes)
Net::FTP=GLOB(0x38b36c): Timeout at
/System/Library/Perl/5.8.1/Net/FTP/dataconn.pm line 73
Unable to close datastream at retrieve.pl line 171


I think this timeout is due to the long time the connection is opened.
Is there any way of keeping the connection alive? or your suggestion is
to re-log on after the transfer of that file.

Any ideas?

thanks
John
 
P

Paul Lalli

hi guys after download a very big file from an ftp site I got the
following error.

Net::FTP=GLOB(0x38b36c)<<< 150 Opening BINARY mode data connection for
collection.03.tar.gz (745238729 bytes)
Net::FTP=GLOB(0x38b36c): Timeout at
/System/Library/Perl/5.8.1/Net/FTP/dataconn.pm line 73
Unable to close datastream at retrieve.pl line 171


I think this timeout is due to the long time the connection is opened.
Is there any way of keeping the connection alive? or your suggestion is
to re-log on after the transfer of that file.

Please read the documentation for the modules you use:
http://search.cpan.org/~gbarr/libnet-1.19/Net/FTP.pm

Search for the word "timeout"

Paul Lalli
 
N

news2003

I was awared of the timeout option, before I posted the message. I
considered that option but as I have to retrieve a few files and the
size can be different, the downloading time can be too different from
one to another file.

If you look to the size of this file, it's almost 1GB. So by the time
it finishes the download, the connection is already broken. Could in
this case be better kind of reconnection for every file?

Cheers
John
 
J

Joe Smith

If you look to the size of this file, it's almost 1GB. So by the time
it finishes the download, the connection is already broken. Could in
this case be better kind of reconnection for every file?

I would evaluate the amount of time from when the download started
and when it finished. If it is greater than a few minutes, there
is a good possibility of a NAT router along the way giving up
on your current TCP connection. In that case, I would close the
connection (ignoring Timeout errors) and open a new one.
-Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top