File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Thin Mode Changes
25
25
#) Fixed bug in statement cache when the maximum number of cursors is unknown
26
26
due to the database not being open.
27
27
#) Fixed bug in handling redirect data with small SDU sizes.
28
+ #) Fixed bug with TLS renegotiation under some circumstances.
28
29
#) Adjusted handling of internal break/reset mechanism in order to avoid
29
30
potential hangs in some configurations under some circumstances.
30
31
Original file line number Diff line number Diff line change @@ -249,7 +249,9 @@ cdef class Transport:
249
249
"""
250
250
Renegotiate TLS on the socket.
251
251
"""
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())
253
255
self .negotiate_tls(sock, description)
254
256
255
257
async def negotiate_tls_async(self , BaseAsyncProtocol protocol,
You can’t perform that action at this time.
0 commit comments