Skip to content

Commit fc8618a

Browse files
Fixed bug with detection of when a connection has been closed by the
database without notification.
1 parent 28ff772 commit fc8618a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Thin Mode Changes
2424
#) Fixed bug in the calculation of attribute
2525
:attr:`MessageProperties.deliverymode`. Previously it was being set to the
2626
value of the attribute :attr:`DeqOptions.deliverymode`.
27+
#) Fixed bug with detection of when a connection has been closed by the
28+
database without notification.
2729

2830
Thick Mode Changes
2931
++++++++++++++++++

src/oracledb/impl/thin/packet.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ cdef class ReadBuffer(Buffer):
230230
else:
231231
errors._raise_err(errors.ERR_UNSUPPORTED_INBAND_NOTIFICATION,
232232
err_num=self._pending_error_num)
233-
elif self._transport is None:
233+
elif self._transport is None or self._transport._transport is None:
234234
if self._pending_error_num == TNS_ERR_SESSION_SHUTDOWN:
235235
errors._raise_err(errors.ERR_CONNECTION_CLOSED)
236236
errors._raise_err(errors.ERR_NOT_CONNECTED)

0 commit comments

Comments
 (0)