How the Idle Session Timeout Works
-
When the user API call leaves the engine (returns to the calling connection) a special idle timer associated with the current connection is started
-
When another user API call from that connection enters the engine, the idle timer is stopped and reset to zero
-
If the maximum idle time is exceeded, the engine immediately closes the connection in the same way as with asynchronous connection cancellation:
-
all active statements and cursors are closed
-
all active transactions are rolled back
-
The network connection remains open at this point, allowing the client application to get the exact error code on the next API call.The network connection will be closed on the server side, after an error is reported or in due course as a result of a network timeout from a client-side disconnection.
-
Note
|
Whenever a connection is cancelled, the next user API call returns the error
in addition to
|