|Subject:||Re: TIdFTP based application is randomly freezing Indy 10.0.52|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Wed, 8 Mar 2006|
"iomongol" <iomong…@yahoo.com> wrote in message
> 425 Can't open data connection.
You have the TIdFTP.Passive property set to False, which tells TIdFTP to
open a new server socket for a transfer and expects the FTP server to
connect to that socket. Are you running TIdFTP behind a firewall or router?
If the FTP server cannot connect to that socket, such an error message would
be sent back by the server to TIdFTP. However, the version of Indy that you
are using does not implement any kind of timeout on that socket. So, if the
FTP server fails to connect, TIdFTP will never know and becomes hung
You have two options:
1) set the Passive property to True
2) upgrade to the latest 10.1.5 snapshot of Indy 10 for today. A new
ListenTimeout property has been added to TIdFTP.
> I wonder if Indy doesn't expect such behaviour of FTP server and
> waits for something forever.
That is a likely possibility.
TIdFTP based application is randomly freezing Indy 10.0.52 posted by iomongol on Wed, 8 Mar 2006