What is Ftp.Timeout Property.

0 votes
asked Dec 24, 2014 by ganeshspy (900 points)
edited Dec 29, 2014

What is Ftp.Timeout Property. why it is used.

Need more description about Ftp.Timeout Property.

What is the difference between Ftp.AbortTimeout Property and Ftp.Timeout Property.

Thank in adv.

Applies to: Rebex FTP/SSL

1 Answer

+1 vote
answered Dec 26, 2014 by Lukas Pokorny (126,870 points)
edited Dec 29, 2014
Best answer

Ftp.Timeout specified the maximum length of time (in miliseconds) to wait for a single server response. The associated internal timeout counter is reset every time data is sent or received from to server. This means that data transfers only time out after Ftp.Timeout milliseconds of inactivity, not after Ftp.Timeout milliseconds from the start of the operation.

Please note that Ftp.Timeout only affects synchronous methods by default. This can be changed by setting Ftp.Settings.TimeoutAsynchronousMethods to true.

The minimum allowed value for Ftp.Timeout is 1000.

Unlike Ftp.Timeout, Ftp.AbortTimeout property specified the maximum length of time that an operation can take to complete once Ftp.Abort() has been called. Without Ftp.Abort() call, Ftp.AbortTimeout has no effect.

commented Dec 29, 2014 by ganeshspy (900 points)
edited Dec 29, 2014

Thank you..