ConnectTimeout property (Server Object)

                

 

A read/write property representing the timeout in seconds, used during connection attempts to this server. The ConnectTimeOut is persisted in the Known Servers Table. If no ConnectTimeout has been set for the server, the timeout value is taken from the PISDK.ConnectTimeout property also stored in the Known Servers Table. If no ConnectTimeout has been set for the PISDK object then a default value of 10 seconds is used. Once a connection is made, this property is no longer used. Instead the Server.Timeout property is used for method calls.

To remove the storage of the ConnectTimeout property for a server and revert to the default behavior, set the Server.ConnectTimeout property to 0.

Syntax

object.ConnectTimeout

The object placeholder is an object expression that evaluates to a Server object.

Remarks

When this property changes, the OnEdit event is fired. Setting the property to a very small value (< 10 seconds) may not result in a call timing out quite that quickly.  The PI-SDK is subject to limitations of the underlying communications and Server implementations.

For server objects representing a replicated PI3 system this property is Read-Only. To modify a collective's member timeout use CollectiveMember.ConnectTimeout.

For server objects representing a PI2 system this property is Read-Only. The connection timeout setting used on PI2 is obtained from the PIPC\dat\pilogin.ini file if the section [Network], item ConnectTimeout is set.  A default value of 10 seconds is used if this is not set in the pilogin.ini file.  Changes to the pilogin.ini file will only take effect when a program is restarted.

Enabling Operational Intelligence