This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: SSL on aiomysql hangs on reconnection
Type: behavior Stage: resolved
Components: asyncio Versions: Python 3.6
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: andr04, asvetlov, kumaraditya, yselivanov
Priority: normal Keywords:

Created on 2018-06-17 17:41 by andr04, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg319823 - (view) Author: Andrey (andr04) * Date: 2018-06-17 17:41
On reconnect from aiomysql (after the pool has recycled the old connection) by using ssl context it hangs forever. Interrupting gives the following Traceback:
  File "/usr/local/lib/python3.6/site-packages/aiomysql/", line 464, in _connect
    await self._request_authentication()
  File "/usr/local/lib/python3.6/site-packages/aiomysql/", line 670, in _request_authentication
  File "/usr/lib/python3.6/asyncio/", line 81, in open_connection
    lambda: protocol, host, port, **kwds)
  File "/usr/lib/python3.6/asyncio/", line 804, in create_connection
    sock, protocol_factory, ssl, server_hostname)
  File "/usr/lib/python3.6/asyncio/", line 830, in _create_connection_transport
    yield from waiter

Probably it is related with issue30698 and issue29406.
msg414795 - (view) Author: Kumar Aditya (kumaraditya) * (Python triager) Date: 2022-03-09 12:02
The main branch has rewritten ssl implementation with bpo-44011. This is outdated now and does not has a reproducer. This can be closed @asvetlov.
Date User Action Args
2022-04-11 14:59:01adminsetgithub: 78067
2022-03-10 01:49:33asvetlovsetstatus: open -> closed
resolution: fixed
stage: resolved
2022-03-09 12:02:00kumaradityasetnosy: + kumaraditya
messages: + msg414795
2018-06-17 17:41:30andr04create