Back to product page

Timeout property


Timeout value, in seconds.

Type

An Integer value. Number of idle seconds before disconnection.

Syntax

  • Basic
object.Timeout [= value]
The Timeout(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodSSH.
valueAn Integer value.

Remarks

The Timeout value specifies how many seconds must pass without any activity occurring between wodSSH and the remote server before wodSSH will autodisconnect. Autodisconnect is a measure of protection so there are no 'ghost' connections made between you and the remote server. If you don't want autodisconnection to occur, set Timeout property to 0.

Timeout will not cause component to disconnect from the server if it's in the middle of blocking call (such as Receive method). In such cases it will just cause method to unblock and report an error, but you will still be able to reuse connection and continue in the same session.

Timeout can be changed during the lifetime of a connection. You shouldn't set it below 120 (2 minutes) if you are on slow network connection.

Platforms

Windows