Timeout (General questions)
Does SFTP.Timeout property applies for the connection timeout? Send and Receive timeout?
The documentation says that Timeout is Total number of seconds to expire before we are automatically disconnected from the server.
Also, do you take into account the time spent on file download or upload as a part of lifetime timeout? I mean, if a file is huge it may take a lot of time to download.
Re: Timeout
Viking,
timeout starts counting when component is idle. As soon as one byte is transmitted (in any direction) it is reset to zero.
So, if you have large downloads and small timeout - it will work. As long as data arrives/goaway it will not disconnect.
Re: Timeout
Do you guys ever sleep?
What about connection timeout? It's a must for any decent ftp-client. It looks like you useS FTP.Timeout property for all timeouts I listed above? Am I right?
Re: Timeout
Viking,
connection timeout? You mean one that ticks no matter if wodSFTP is idle or not?
Ehm.. Ehm.... Ehm.... How about you put some timer in your code and disconnect when it expires? Why must component have everything? :)
So, put one Timer on the form and voila...
Regards.
Re: Timeout
No, the one for the socket connection at startup: Socket.Connect(). Can be helpfull if the server is down.
Re: Timeout
Oh, I see. Same Timeout property is used. You can change Timeout during connection - or after Connected event is fired.