The KeepAlive property determines whether the control will
attempt to reuse existing HTTP connections when communicating with the
provider. When this property is set to True, the control may
retain an active connection between requests to reduce connection
overhead and improve performance.
Persistent connections are most beneficial when multiple requests
are sent within a relatively short period of time. Reusing an existing
connection can reduce network latency and avoid the overhead of
establishing a new connection for each request.
This property works in conjunction with the IdleTime
property, which specifies how long an idle connection may remain open
before it is closed and re-established. If KeepAlive is set to
False, the idle timeout value is ignored and a new connection
will be established for each request.
Idle connections are typically closed automatically by the provider
or intermediate network infrastructure after a period of inactivity.
If a persistent connection is no longer valid, the control will
automatically reconnect as needed. Checking the IsConnected
property may cause the control to re-establish a connection.