API clean up and validate
API clean up and close
IEC allows handling of API/MI programs and retrieves only the first data on an MI returning multiple records. Therefore, unprocessed data remain on the BE TCP buffers. When you close an API connection, IEC will automatically clean up any remaining data in the BE to save on system resource.
API check and validate
MI connections in a pool are checked and validated using the GetServerTime
command. You can skip this routine and schedule a time when to execute check and validate. To set a schedule, access the ec.properties
and edit the MvxAPI.Pool.Connection.CheckAPI.Time
property. Specify a numeric value to set the time frame in seconds. IEC will check and validate APIs that are not used within the time you specified. The default value 0
(zero) sets the property to always perform check or validate.
For example, set MvxAPI.Pool.Connection.CheckAPI.Time=10
, to validate APIs not used within 10 seconds.