Set the connection timeout for a service
To change the default timeout value to establish a connection to the service, set the record
member ConnectionTimeout
with the timeout value in seconds. The ConnectionTimeout
is a maximum time to establish the connection.
If the server is not available you can get the response sooner than ConnectionTimeout. The ConnectionTimeout
also avoids indefinitely waiting for a response
when a server is reachable but not responding to request.
Example:
LET Calculator_CalculatorPortTypeEndpoint.Binding.ConnectionTimeout = 15
Important: On GMI mobile devices, the max of
ConnectionTimeout
and ReadWriteTimeout
will be used.