Einzelnen Beitrag anzeigen

FaNIX

Registriert seit: 8. Okt 2007
36 Beiträge
 
#5

Re: Indy FTP Client Read Error (TidFTP)

  Alt 24. Jan 2008, 15:01
Zitat von Klaus01:
Hello again,


I'm not sure if we can catch the problem just by increasing the timeout value.
The problem is that your application does not know if it is blocked by a firewall
or the ip connection is down or something else.

A better approach might be to act on the Exception EidReplayRFCError or EidReadTimeout.
Then you start the transfer again, or you can pop up a message
that a problem has occured and the user has to check this and that.
After the message has been acknowledged the application can try to
do the transfer again.

In that case the user has enough time to allow the firewall to pass the
ftp transfer.

Bye,
Klaus
mmm ok, that might work, but how do i catch the EidReplayRFCError or EidReadTimeout exceptions?
  Mit Zitat antworten Zitat