MIAMEX 180: Get / Set Inactivity Timeout

Modifed June 2017 (added second paragraph to Comments)

xcall MIAMEX, MX_IATIMEOUT, opcode, timesecs

MX_IATIMEOUT allows querying / setting the inactivity timeout.

Parameters

opcode  (Num)  [in]

0 to retrieve, 1 to set

timesecs  (Num)  [in, out]

Timeout value in seconds. If opcode=0, the current timeout setting (or zero if disabled) is returned here. Otherwise the value passed in timesecs is used to reconfigure the current inactivity timer.

Comments

Note that unlike the case in miame.ini IATIMEOUT property, which uses units of minutes, the MX_IATIMEOUT function uses units of seconds.

In ATE GUI environments, chances are that an inactivity timeout will occur while the ATE client is waiting on input within a local client context, in which case it will not detect that the server-side process received a timeout signal, or even that the connection has been terminated from the server side. To avoid that, set the inactivity timeout on the client (using AG_IATIMEOUT) rather than on the server side. Such a timeout will cause ATE to initiate a disconnect, which will generate a SIGHUP signal sent to the application process on the server, resulting in error 250.

See Also

•   Set / Retrieve Timeout Period to set the inactivity timeout on the ATE client

•   IATIMEOUT system parameter

•   Trapping Timeouts and Closed Windows

History

2010 August, 1191:  Routine added to A-Shell