@@ -666,22 +666,23 @@ re-establish connections in a background thread.
666666
667667A connection pool can shrink back to its minimum size when connections opened
668668by the pool are not used by the application. This frees up database resources
669- while allowing pools to retain connections for active users. Note this is
670- currently applicable to Thick mode only. If connections are idle in the pool
671- (i.e. not currently acquired by the application) and are unused for longer than
672- the pool creation attribute ``timeout `` value , then they will be closed. The
673- default ``timeout `` is 0 seconds signifying an infinite time and meaning idle
674- connections will never be closed. The pool creation parameter
675- ``max_lifetime_session `` also allows pools to shrink. This parameter bounds
676- the total length of time that a connection can exist starting from the time the
677- pool created it. If a connection was created ``max_lifetime_session `` or
678- longer seconds ago, then it will be closed when it is idle in the pool. In the
679- case when ``timeout `` and ``max_lifetime_session `` are both set, the connection
680- will be terminated if either the idle timeout happens or the max lifetime
681- setting is exceeded. Note that when using python-oracledb in Thick mode with
682- Oracle Client libraries prior to 21c, pool shrinkage is only initiated when the
683- pool is accessed so pools in fully dormant applications will not shrink until
684- the application is next used.
669+ while allowing pools to retain connections for active users. If connections
670+ are idle in the pool (i.e. not currently acquired by the application) and are
671+ unused for longer than the pool creation attribute ``timeout `` value, then they
672+ will be closed. The default ``timeout `` is 0 seconds signifying an infinite
673+ time and meaning idle connections will never be closed. In python-oracledb
674+ Thick mode, the pool creation parameter ``max_lifetime_session `` also allows
675+ pools to shrink. This parameter bounds the total length of time that a
676+ connection can exist starting from the time the pool created it. If a
677+ connection was created ``max_lifetime_session `` or longer seconds ago, then it
678+ will be closed when it is idle in the pool. In the case when ``timeout `` and
679+ ``max_lifetime_session `` are both set, the connection will be terminated if
680+ either the idle timeout happens or the max lifetime setting is exceeded. Note
681+ that when using python-oracledb in Thick mode with Oracle Client libraries
682+ prior to 21c, pool shrinkage is only initiated when the pool is accessed so
683+ pools in fully dormant applications will not shrink until the application is
684+ next used. When using python-oracledb in Thin mode, connection timeout checks
685+ only occur when :meth: `~ConnectionPool.acquire() ` is called.
685686
686687For pools created with :ref: `external authentication <extauth >`, with
687688:ref: `homogeneous <connpooltypes >` set to False, or when using :ref: `drcp `,
@@ -802,7 +803,7 @@ can be set directly, for example:
802803
803804 .. _sessioncallback :
804805
805- Session CallBacks for Setting Pooled Connection State
806+ Session Callbacks for Setting Pooled Connection State
806807-----------------------------------------------------
807808
808809Applications can set "session" state in each connection. Examples of session
0 commit comments