[DUG] Indy FTP problem
Leigh Wanstead
leighw at softtech.co.nz
Wed May 31 14:50:41 NZST 2006
Hi David,
What I did is create the ftp component on the fly. Of course there is
exception handling logic to handle the error. Once finished the work, the
ftp component was destroyed. The overhead of creating and destroying ftp
component can be ignored compare to slow network connection. My
understanding is the time to create and destroy ftp component is faster than
100mbps network connnection.
By create and destroy ftp component, there is no error status left to be
uncertain, thus no error can stop next time ftp talking.
Regards
Leigh
www.smootharm.com
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz
[mailto:delphi-bounces at ns3.123.co.nz]On Behalf Of Dave O'Brien
Sent: Wednesday, 31 May 2006 2:31 p.m.
To: leighw at softtech.co.nz; NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Indy FTP problem
I understand that viewpoint. This app uploads a number of files
(unknown) to the server on completion of some other processing. What
happens if the server goes away during this upload?
David O'Brien
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz]
On Behalf Of Leigh Wanstead
Sent: Wednesday, 31 May 2006 2:18 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Indy FTP problem
Hi David,
Here is what I will do.
I will not stay idle while connect to ftp. I will start transaction if I
have something to do i.e. get a file, put a file. Once finish what I
want, I
will disconnect immediately from the ftp server.
All network connections are valuable and limited resource which should
be
shared.
Just my 2cents
Regards
Leigh
www.smootharm.com
-----Original Message-----
From: delphi-bounces at ns3.123.co.nz
[mailto:delphi-bounces at ns3.123.co.nz]On Behalf Of Dave O'Brien
Sent: Wednesday, 31 May 2006 1:47 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Indy FTP problem
I'm having a problem with FTP in one of my apps. (First time with an FTP
client).
Using Indy 10 on 2005.
If the server times out (broken Internet connection or whatever), the
client never knows, and if the user attempts to do something, an error
occurs. I can trap the error, but I can't work out what to do to reset
the idFTP component. Disconnect, quit and anything else I can think of
just keep throwing errors.
I can easily test this by shutting down my FTP server when the client is
connected.
Any ideas?
Regards,
David O'Brien
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
More information about the Delphi
mailing list