Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Don't receive a Status of ftpOK
Alexandre Archambault

From: Montréal, QC Canada
Posts: 49
Member Since: 02/27/01
posted June 5, 2002 4:07 PM

I have a batch program that retrieves updated files from an FTP site.

 On the first file I get in the Progress Event:

  ftpCmd = ftpRetrieve
  Status = ftpOK
  Reply = "226 Binary Transfer complete"

 On the second file I get in the Progress Event:

  ftpCmd = ftpRetrieve
  Status = ftpInProgress
  Reply = "226 Binary Transfer complete"

 And I never get the Status = ftpOK

 Even if I receive a status of ftpInProgress the file has been received.

 Would it be wise not to check the status, but just validate the reply?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 5, 2002 4:45 PM

Hi,
No, you should get an Ok status after every transfer. I tried to reproduce this by calling Retrieve 5 times in a row. The status reached Ok after each get. Is there something else I have to do to see this problem?
Thanks,
-ken
Alexandre Archambault

From: Montréal, QC Canada
Posts: 49
Member Since: 02/27/01
posted June 5, 2002 5:07 PM

Here's some more on this that I've done

 If I have a timeout of 0 I never get a status of ftpOK on my second retrieve.

 If I put a timeout of 1 or more seconds I do get a status of ftpOK on every retrieve I do.

 I tried to reproduce this with the example FTP Client but it wasn't written to support a Timeout of 0.

 And having a timeout is not an option.

 Thanks
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 5, 2002 5:44 PM

Hi,
I wasn't able to reproduce this with Timeout = 0 either. In the progress event, I do the next Retrieve when the status changes to Ok, and all my files are downloaded.
-ken
Alexandre Archambault

From: Montréal, QC Canada
Posts: 49
Member Since: 02/27/01
posted June 5, 2002 6:10 PM

Yes if I put a retrieve in the Progress Event and do another retrieve when I get a status of OK everything works file.

I tried doing about 50 retrieves like this and everyone got a status of OK.

Wish what I was doing was like that.

What I have is I have an application that calls a FTP DLL, once the FTP dll receives the retrieved file it raises an event indicating to the program where the file is so the calling program will work on it (while the FTP dll keeps the connection open)

Once the program has finished manipulating the file it requests another retrieve from the FTP dll with the file that is required and this is when I don't receive the OK status.
I simply get a status of InProgress with a reply of "Binary Transfer complete" and it just stays there the progress event is never fired again no matter how long I let it run (or any other events).

 Everything works fine at every other ftp site, except for this one.

 The only difference between this ftp site and the others we are accessing is this is a public ftp while all the others are secured sites.

 Thanks



K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 6, 2002 9:49 AM

Hi,
Your scenario is involved for me to get into on the forum. If you have one of our support programs, we can delve into it further.
Otherwise, I would consider blocking (your project seems ideal for it), or using the Reply parameter, as you indicated this option would work for you.
-ken
Alexandre Archambault

From: Montréal, QC Canada
Posts: 49
Member Since: 02/27/01
posted June 6, 2002 2:10 PM

The reason (it seems) why I wasn't getting the OK status on my second retrieve was because I was activating the Trace command just before the Retrieve was done.

So if I had multiple retrieves, the .Trace was performed has many times the retrieve was performed.

I've moved my trace command to the where the Login is done (so the .Trace is performed once per session) and I now get an OK status on every Retrieve I perform.

Thanks for your help.
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX