Skip to content

Commit 04de112

Browse files
Fixed bug in handling exceptions raised during connection establishment.
1 parent 65ad67c commit 04de112

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/src/release_notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Thin Mode Changes
1818
#) Internal changes to improve handling of multiple address and description
1919
lists in full connect descriptors.
2020
#) Fixed bug in handling database response in certain unusual circumstances.
21+
#) Fixed bug in handling exceptions raised during connection establishment.
2122

2223
Thick Mode Changes
2324
++++++++++++++++++

src/oracledb/impl/thin/protocol.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ cdef class Protocol:
340340
Forces the connection closed. This is used when an unrecoverable error
341341
has taken place.
342342
"""
343-
if self._socket is not None:
343+
if self._socket is not None and self._read_buf._socket is not None:
344344
sock = self._socket
345345
if DEBUG_PACKETS:
346346
now = datetime.datetime.now()

0 commit comments

Comments
 (0)