We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c23879 commit ee119e2Copy full SHA for ee119e2
aiomysql/connection.py
@@ -685,6 +685,8 @@ def _request_authentication(self):
685
if raw_sock is None:
686
raise RuntimeError("Transport does not expose socket instance")
687
688
+ raw_sock = raw_sock.dup()
689
+ self._writer.transport.close()
690
# MySQL expects TLS negotiation to happen in the middle of a
691
# TCP connection not at start. Passing in a socket to
692
# open_connection will cause it to negotiate TLS on an existing
0 commit comments