I am trying to confirm a FTP connection -
When the connection is OK, I get a quick response, all is good.
When the connection is no good or the wrong host is provided it takes a long time for the connection to return failed.
This causes a hang.
So I made a out-of-process com exe to run the task, but I am still having similar issues.
I could wait the amount of time, yes and then continue. This will work, but the wait time is somewhat excessive.
Once the reference to the com exe is created, it still needs to wait while it runs its task, before it can be released.
Is there any other solution to checking for a remote FTP connection? Something like 'If you don't respond in 'x' amount of seconds, then the connection failed'
I am using WinInet at the moment.
Alastair
When the connection is OK, I get a quick response, all is good.
When the connection is no good or the wrong host is provided it takes a long time for the connection to return failed.
This causes a hang.
So I made a out-of-process com exe to run the task, but I am still having similar issues.
I could wait the amount of time, yes and then continue. This will work, but the wait time is somewhat excessive.
Once the reference to the com exe is created, it still needs to wait while it runs its task, before it can be released.
Is there any other solution to checking for a remote FTP connection? Something like 'If you don't respond in 'x' amount of seconds, then the connection failed'
I am using WinInet at the moment.
Alastair