Throttling a FTP Thread

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Throttling a FTP Thread

  • Creator
    Topic
  • #53873
    Tim Malaney
    Participant

      We want to throttle an FTP thread just processing 1 message every 20 seconds or so. Set the Real Interval to 20 and the Max Messages to 1. When the thread reads the last message it goes to error state. When the thread is restarted it begins back at the start of the file and reprocesses it. If we sent the Max Messages to 1000 (which is larger then the file) we have no issues. Am I missing something? The error we receive is below. Do not get the error with Max Messages set to 1000,. The input files gets removed.

      [fset:read:ERR /0: MPIMGMT_SEND:10/17/2013 13:32:47] Error while trying to delete mpimgnt.txt.  

                                     Detailed error:Send failure: Broken pipe

                                     Curl errCode:21 Curl error: Quote command returned error

      Thanks

    Viewing 1 reply thread
    • Author
      Replies
      • #79334
        Jim Kosloskey
        Participant

          Does this work when the values are set to something between 1 and 1000?

          What release of Cloverleaf?

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #79335
          Tim Malaney
          Participant

            I now see the problem but I don’t know the solution. When the ftp thread logs in, it correctly changes directory to the location of the file. When it re-logs in to delete the file, it does not change directory and cannot find the file to delete. Below are log excerpts for the initial login and the re-login to delete the file, We are on Cloverleaf 5.85

            USER *********

            < 331 Password required for *********.

            > PASS *******

            < 230 User ******* logged in.

            > PWD

            < 257 "/" is current directory.

            * Entry path is ‘/’

            > CWD MPI-TEST

            < 250 CWD command successful.> EPSV

            * Connect data stream passively

            < 500 'EPSV': command not understood

            * disabling EPSV usage

            > PASV

            < 227 Entering Passive Mode (10,1,204,141,193,10).

            *   Trying ***********… * connected

            * Connecting to ********* (*********) port 49418

            > TYPE A

            < 200 Type set to A.

            > nlst

            < 125 Data connection already open; Transfer starting.

            * Maxdownload = -1

            * Remembering we are in dir “MPI-TEST/”

            < 226 Transfer complete.

            * Connection #0 to host ************ left intact

            Relogin in to delete file – does not change to correct directory path

            Connection #0 seems to be dead!

            * Send failure: Broken pipe

            * Closing connection #0

            * About to connect() to *********** port 21 (#0)

            *   Trying **********… * connected

            * Connected to *********** port 21 (#0)

            < 220 Microsoft FTP Service

            > USER *********

            < 331 Password required for **********.

            > PASS *********

            < 230 User ******** logged in.

            > PWD

            < 257 "/" is current directory.

            * Entry path is ‘/’

            > DELE mpimgnt.txt< 550 mpimgnt.txt: The system cannot find the file specified.

            * QUOT command failed with 550

            * Closing connection #0

            [fset:read:ERR /0: MPIMGMT_SEND:10/18/2013 08:30:34] Error while trying to delete mpimgnt.txt.  

                                           Detailed error:Send failure: Broken pipe

                                           Curl errCode:21 Curl error: Quote command returned error

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.