Solved

Lag when using Indy to delete an FTP file

Posted on 2004-09-11
3
320 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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