Solved

Lag when using Indy to delete an FTP file

Posted on 2004-09-11
3
316 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tidtcpserver connection lost handle 2 71
creating threads in delphi 1 84
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 57
Delphi and Access based Enumeration 9 48
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now