| Author |
got time out in ftp
|
|
| news2003@wanadoo.es 2005-08-27, 6:56 pm |
| 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
| |
| Paul Lalli 2005-08-27, 6:56 pm |
| news2003@wanadoo.es wrote:
> 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
| |
| news2003@wanadoo.es 2005-08-28, 3:56 am |
| 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
| |
| Joe Smith 2005-08-28, 7:56 am |
| news2003@wanadoo.es wrote:
> 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
|
|
|
|