Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Oct : FTP upload stalling

www.cryer.info
Managed Newsgroup Archive

FTP upload stalling

Subject:FTP upload stalling
Posted by:"Barry" (barry_morris@nospam.btinternet.com)
Date:Fri, 19 Oct 2007 13:32:13

Hello

I have used Indy10 in a project and have had reports that FTP upload is
running slow and tests show that for no apparent reason FTP can stall for
several seconds before resuming.

I run FTP in its own thread with the main thread monitoring progress via a
timer event. I use the IDFTP OnWork event to detect that something is
actually happening and to provide data to the main thread for progress bars
etc. using the Thread Synchronize method.

When I run an FTP upload from my PC, using XP and Vista Pro, to the same FTP
Server everything seems to work okay, i.e. there are very few 'stalls'
detected, however my customer reports that FTP is stalling more than it is
active.

I really do not know what to check now, as this seems to be the PC doing the
upload related problem, or progress messages are not getting through from
the server. My customer reports that other FTP products upload okay, I
wonder if they use Indy?

Are there any known issues of this kind and workarounds available?

I have purchased and read Indy in depth and could not find anything there.

I am using Indy 10 snapshot where idFTP.pas is dated 5 March 2007.

Another question, slightly off topic: When testing threads by putting beak
points in the thread occasionally causes that whole PC to slow down to a
crawl (almost stopped) on clicking 'Run' or 'Trace into', is there a way to
prevent this?

TIA

Barry

Barry Morris

Replies:

www.cryer.info
Managed Newsgroup Archive