cknowlton has asked for the wisdom of the Perl Monks concerning the following question:
I am searching for clairity in my pursuit of Perl wisdom. In particular, What exactly does the "Timeout" option in the "new (HOST [,OPTIONS])" Constructor in Net::FTP wait for?
In the description, at Perldoc.com. It gives a generic definition:
"Timeout - Set a timeout value (defaults to 120)"
Is it an idle timeout, a login auth timeout, or what?
I have a software application that is in constant development, and there are many users in remote locations testing it. To keep all the test machines in sync with the latest development version, I've written a perl script using Net::FTP which compares their files against files on my "update" machine, which replaces any files that have been updated, on a daily basis.
The Problem I'm seeing, is that sometimes a file transfer will fail in different places after a pause that I am attributing to a what looks like timeout value somewhere in the process. I have increased all of my server timeouts, and it is still terminating prematurely sometimes on slow connections. So I'm wondering if the "Timeout" option in Net::FTP will help. Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::FTP Timeout
by pg (Canon) on Dec 16, 2002 at 18:31 UTC | |
by cknowlton (Acolyte) on Dec 17, 2002 at 14:19 UTC | |
|
Re: Net::FTP Timeout
by Marza (Vicar) on Dec 16, 2002 at 18:14 UTC | |
|
Re: Net::FTP Timeout
by Zapawork (Scribe) on Dec 16, 2002 at 19:38 UTC | |
by cknowlton (Acolyte) on Dec 16, 2002 at 22:50 UTC | |
|
Re: Net::FTP Timeout
by waswas-fng (Curate) on Dec 17, 2002 at 00:55 UTC | |
by Dogma (Pilgrim) on Dec 17, 2002 at 02:00 UTC |