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?


Thanks!

-Carlos

In reply to Net::FTP Timeout by cknowlton

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.