|Subject:||Re: IdFtp9->Connect() hangs|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Thu, 8 Jun 2006|
"poojo hackma" <poojo.com/mail> wrote in message
> I have set a 2 second timeout, but this does not seem
> to effect the Connect() method.
You are setting the ReadTimeout property. That has no effect on
establishing a connection, only on reading data from a connection that is
already established. You need to use the ATImeout parameter of Connect()
> if (mFtp->Connected() == false)
There is no need to do that. Connect() throws an exception if it fails.
> catch (const EIdSilentException &eId)
Why are you catching EIdSilentException generically instead of
IdFtp9->Connect() hangs posted by poojo hackma on Thu, 8 Jun 2006