Solved

Lag when using Indy to delete an FTP file

Posted on 2004-09-11
3
317 Views
Last Modified: 2010-04-05
When I delete a file from a remote FTP server using Indy 9.0 (or even IE) the file remains visible (to Indy) and readable for about 60 seconds. During that time, a second call to Delete it returns an exception but I can Put a file with the same name (replacing the original).

Has anyone run into this kind of thing?

Tom
0
Comment
Question by:tfield98
  • 2
3 Comments
 
LVL 17

Expert Comment

by:geobul
ID: 12053246
Hi,

No, I haven't. And noone else hasn't obviously. What is that remote FTP server and what OS it's running on? Perhaps your request for deletion is being queued somewhere for further execution and the file is being locked or something. All this depends on the FTP server and/or the OS of the remote machine. I don't think you could do anything more.

Regards, Geo
0
 

Author Comment

by:tfield98
ID: 12054397
Hi, Geo,

We'veI concluded it is the FTP server version that's the problem. We're running NT 4.0 and  IIS 5.5.

I dug around with google and discovered a thread in a group regarding this same problem we are having with the delete lag. Both the poster and we are running an older version of IIS. I suspect that this is the problem. Since the server is in-house, we'll be upgrading later this year it to see if that makes a difference.
0
 
LVL 17

Accepted Solution

by:
geobul earned 125 total points
ID: 12055256
The server is the one that is creating the problem for sure. I've been using Indy 9 FTP client component for long time connecting to Unix and Windows based FTP servers and have had no problems deleting files. These programs communicate intensively getting hundreds of files daily and deleting them after downloading.

I have no experience using IIS though. Upgrading should solve the issue. There is nothing special in deleting a file on a FTP server using Indy, so I don't think it's your code that has to be changed.

Regards, Geo
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question