Hello Wise Monks:

I am still investigating the problem you can find in the following post: "Question about FTP.pm rename operation" made by me. I have new questions about how the FTP.pm module works. To make a connection I have the following code:

$self->{ftp} = Net::FTP->new($host, BlockSize => 32768, Timeout => 120 +)

I have found that the FTP.pm constructor opens a socket to the port 21 with a Blocksize 32768, using tcp and a timeout of 120. Only the timeout part interest me for the moment.

Now the question is:

1.- żIs this the equivalent to do an ftp -T 120?, -T is the timeout option on the ftp command.

EDIT 1:

Thank you Corion. What I try to demostrate is that the following FTP bug: "4500116 ftp -T <timeout> is broken, ftp client does not exit upon network disruption" that can be found on a Solaris 8 System that is not properly patch, can affect a perl program that uses FTP.pm.

The problem is that I have received a "550: No such file or directory". error after a rename operation, however the file has been renamed correctly. This happens once per 2 to 3 months.

The hipotesis is: We send a file but just after the transference is finished but before the server close all and send the successfull return we have a puntual network disruption but because the timeout bug the conection remains connected and after a timeout sends "550: No such file or directory."

This may not be the place to ask this, sorry if its the case, but I am hoping that others may had the same problem.

Francisco Jaen


In reply to Question About How FTP.pm opens a socket. by fjaenale

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.