[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2019-07-23 Thread Nikita Ilyasov
Nikita Ilyasov added the comment: server example: https://gist.github.com/hexrain/bc92aa70eebc229365f0ce4bcccf7fc4 -- ___ Python tracker <https://bugs.python.org/issue37

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2019-07-23 Thread Nikita Ilyasov
New submission from Nikita Ilyasov : In some cases `asyncio.wait_for` can lead to socket leak. Condensed example: ```python async def _create_connection(timeout=60, ssl_obj): loop = asyncio.get_event_loop() connector = loop.create_connection(MyEchoClientProtocol, '127.0.0.1&#