Does tcp_connect_timeout actually applicable? #48
Closed
PaulWasTaken
started this conversation in
General
Replies: 1 comment 3 replies
-
The parameter connect(user=USER, password=PASSWORD, dsn="host/service_name", tcp_connect_timeout=30) will not work, whereas this: connect(user=USER, password=PASSWORD, host="host", service_name="service_name", tcp_connect_timeout=30) will work. Both cases work in thin mode, though. Hopefully that explains things! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, first of all I am very gratefull for this new version of cx_Oracle - oracledb)
Nevetheless I have somethig to ask.
Does
tcp_connect_timeout
actually applicable? I came up with the question after some research.I tryied to dive deep into the sources and can not find any place where it possible could be applied.
So, if I use pool, the connecection is made here https://github.com/oracle/python-oracledb/blob/main/src/oracledb/pool.py#L152
based on https://github.com/oracle/python-oracledb/blob/main/src/oracledb/connection.py#L65 and I can not pass conn_params via
acquire
.I thought that pool params will be used, but I can not find the place.
It is passed here https://github.com/oracle/python-oracledb/blob/main/src/oracledb/connection.py#L137 but it seems not to be used here
python-oracledb/src/oracledb/impl/thick/connection.pyx
Line 255 in 47c3b2c
Could you make some clarification please
Will
tcp_connect_timeout
be used if it is passed in my dsn?Beta Was this translation helpful? Give feedback.
All reactions