Skip to content

Commit 4b9bb26

Browse files
Fixed bug with TLS renegotiation under some circumstances.
1 parent 373ea9d commit 4b9bb26

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/src/release_notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Thin Mode Changes
2525
#) Fixed bug in statement cache when the maximum number of cursors is unknown
2626
due to the database not being open.
2727
#) Fixed bug in handling redirect data with small SDU sizes.
28+
#) Fixed bug with TLS renegotiation under some circumstances.
2829
#) Adjusted handling of internal break/reset mechanism in order to avoid
2930
potential hangs in some configurations under some circumstances.
3031

src/oracledb/impl/thin/transport.pyx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ cdef class Transport:
249249
"""
250250
Renegotiate TLS on the socket.
251251
"""
252-
sock = socket.socket(fileno=self._transport.detach())
252+
orig_sock = self._transport
253+
sock = socket.socket(family=orig_sock.family, type=orig_sock.type,
254+
proto=orig_sock.proto, fileno=orig_sock.detach())
253255
self.negotiate_tls(sock, description)
254256

255257
async def negotiate_tls_async(self, BaseAsyncProtocol protocol,

0 commit comments

Comments
 (0)