Skip to content

Commit 86032f9

Browse files
Internal change to ensure that all connections in a pool have been
closed gracefaully before the pool is closed.
1 parent a65a0a3 commit 86032f9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Thin Mode Changes
2828
#) Added support for the ``FAILOVER`` clause in full connect descriptors.
2929
#) A more meaningful error is raised when the wrong type of data is passed to
3030
:meth:`LOB.write()`.
31+
#) Internal change to ensure that all connections in a pool have been closed
32+
gracefully before the pool is closed.
3133
#) Internal changes to improve handling of the network protocol between
3234
python-oracledb and Oracle Database.
3335
#) Internal changes to improve handling of multiple address and description

src/oracledb/impl/thin/pool.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ cdef class ThinPoolImpl(BasePoolImpl):
143143
wait = False
144144
self._drop_conn_impls_helper(conn_impls_to_drop)
145145

146-
# if pool has closed, stop thread!
147-
if not self._open:
146+
# if pool has closed and no connections to drop, stop thread!
147+
if not self._open and not self._conn_impls_to_drop:
148148
break
149149

150150
# otherwise, if nothing needed to be done, wait for notification

0 commit comments

Comments
 (0)