Thanks for your reply. I have a question in reference to your first paragraph regarding the nature of socket creation: Is a socket created only uppon connection, or is it done continually throughout the connection?

I ran a little test where I began a connection, and started a file transfer:

$ftp_a = Net::FTP->new($remhostname, Timeout => 120, Debug => 1) || &error && die "Cant connect to $remhostname\n"; $ftp_a->login ($remusername,$rempassword) || &error && die "Cant login to $remhostname\n"; $ftp_a->binary (); $ftp_a->cwd ("$home\/$fpath") || warn "Cant find Directory $home/$fpath\n"; $ftp_a->get("$fname") or &error && die $ftp_a->message; $ftp_a->quit;

After the file transfer had begun, I disconnected the network cable, and watched as the script was terminated at 120 seconds from the time I removed the cable.

I then ran the test again with the Timeout value set to 900. Again, the script terminated at the Timeout value. If the connection was restored at any time within the timout period, the transfer would continue as normal.

I don't have a lot of experience with network programming, but this seems to imply that the timeout is for more than just the connection. However, I still don't know specifically what.


Best Regards,

-Carlos

"If at first you don't succeed, skydiving is not for you!"

In reply to Re: Re: Net::FTP Timeout by cknowlton
in thread 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.