Skip to content

Commit 83d2e98

Browse files
Eliminated unneeded round trip when using token authentication to
connect to the database.
1 parent aa42ae8 commit 83d2e98

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Thin Mode Changes
1818
#) Fixed bug which caused a cursor leak if an error was thrown while
1919
processing the execution of a query.
2020
#) Fixed bugs in the implementation of the statement cache.
21+
#) Eliminated unneeded round trip when using token authentication to connect
22+
to the database.
2123

2224
Thick Mode Changes
2325
++++++++++++++++++

src/oracledb/impl/thin/protocol.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ cdef class Protocol:
226226
auth_message = conn_impl._create_message(AuthMessage)
227227
auth_message._set_params(params, description)
228228
self._process_message(auth_message)
229-
self._process_message(auth_message)
229+
if auth_message.resend:
230+
self._process_message(auth_message)
230231

231232
# mark protocol to indicate that connect is no longer in progress; this
232233
# allows the normal break/reset mechanism to fire

0 commit comments

Comments
 (0)