Added support for timed waits when acquiring a session from a session… · datamk/python-cx_Oracle@b938189 · GitHub
Skip to content

Commit b938189

Browse files
Added support for timed waits when acquiring a session from a session pool and
added support for specifying the timeout and maximum lifetime session of sessions in the pool when the pool is being created.
1 parent 62f11ac commit b938189

3 files changed

Lines changed: 59 additions & 4 deletions

File tree

doc/src/module.rst

Lines changed: 27 additions & 1 deletion

src/cxoModule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ static PyObject *cxoModule_initialize(void)
407407
CXO_ADD_INT_CONSTANT("SPOOL_ATTRVAL_WAIT", DPI_MODE_POOL_GET_WAIT)
408408
CXO_ADD_INT_CONSTANT("SPOOL_ATTRVAL_NOWAIT", DPI_MODE_POOL_GET_NOWAIT)
409409
CXO_ADD_INT_CONSTANT("SPOOL_ATTRVAL_FORCEGET", DPI_MODE_POOL_GET_FORCEGET)
410+
CXO_ADD_INT_CONSTANT("SPOOL_ATTRVAL_TIMEDWAIT",
411+
DPI_MODE_POOL_GET_TIMEDWAIT)
410412

411413
// add constants for database shutdown modes
412414
CXO_ADD_INT_CONSTANT("DBSHUTDOWN_ABORT", DPI_MODE_SHUTDOWN_ABORT)

src/cxoSessionPool.c

Lines changed: 30 additions & 3 deletions

0 commit comments

Comments
 (0)