|
From: news2003 on 27 Aug 2005 10:42 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
From: Paul Lalli on 27 Aug 2005 16:31 news2003(a)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
From: news2003 on 27 Aug 2005 23:02 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
From: Joe Smith on 28 Aug 2005 07:13 news2003(a)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
|
Pages: 1 Prev: beginner question on using the Win32::OLE module Next: array question (newbie) |