Solved

Lag when using Indy to delete an FTP file

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

21 Experts available now in Live!

Get 1:1 Help Now