![]() The statement timeout is reset when Section 14. They do not report the effective statement timeout. MON$STATEMENT_TIMERīoth RDB$GET_CONTEXT('SYSTEM', 'SESSION_IDLE_TIMEOUT') and MON$ATTACHMENTS.MON$IDLE_TIMEOUT report the idle timeout configured for the connection, and MON$STATEMENTS$STATEMENT_TIMEOUT for the statement Statement-level statement timeout in milliseconds Ġ if timeout is not set. Information is also available from MON$ATTACHMENTS: MON$STATEMENT_TIMEOUTĬonnection-level statement timeout in milliseconds The current statement timeout set for the session can be retrieved through RDB$GET_CONTEXT, namespace SYSTEM and variable STATEMENT_TIMEOUT. 3, Determining the Statement Timeout that is In Effect. Setting a value larger than configured for the database is allowed, but is effectively ignored, see also Section 14. 1 SET STATEMENT TIMEOUT Statement Parameters ParameterĪ value of 0 defers to statement timeout configured for the database. 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. The network connection remains open at this point, allowing the client application to get the exact error code on the next API call. If the maximum idle time is exceeded, the engine immediately closes the connection in the same way as with asynchronous connection cancellation:Īll active statements and cursors are closed ![]() ![]() When another user API call from that connection enters the engine, the idle timer is stopped and reset to zero When the user API call leaves the engine (returns to the calling connection) a special idle timer associated with the current connection is started ![]() No minimum or maximum limit is imposed, but a reasonably large period - such as a few hours - is recommended. It can also be used by application and tools developers as an alternative to writing their own modules for controlling connection lifetime.īy default, the idle timeout is not enabled. 1 Idle Session TimeoutsĪn idle session timeout allows a use connection to close automatically after a specified period of inactivity.Ī database administrator can use it to enforce closure of old connections that have become inactive, to reduce unnecessary consumption of resources. The session idle timeout is reset when Section 14. They do not report the effective idle timeout. Information is also available from MON$ATTACHMENTS: MON$IDLE_TIMEOUTĬonnection-level idle timeout in seconds Ĭontains NULL if an idle timeout was not set, or if a timer is not running.īoth RDB$GET_CONTEXT('SYSTEM', 'SESSION_IDLE_TIMEOUT') and MON$ATTACHMENTS.MON$IDLE_TIMEOUT report the idle timeout configured for the connection The current timeout set for the session can be retrieved through RDB$GET_CONTEXT, namespace SYSTEM and variable SESSION_IDLE_TIMEOUT. 3, Determining the Timeout that is In Effect. The statement can run outside transaction control (without an active transaction). The SET SESSION IDLE TIMEOUT sets an idle timeout at connection level and takes effect immediately. The timeout duration expressed in time-unit.Ī value of 0 defers to connection idle timeout configured for the database. 1 SET SESSION IDLE TIMEOUT Statement Parameters Parameter
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |