[issue34852] Counter-intuitive behavior of Server.close() / wait_closed()

Aymeric Augustin report at bugs.python.org
Sun Sep 30 12:35:38 EDT 2018


Aymeric Augustin <aymeric.augustin at m4x.org> added the comment:

For now I will use the following hack:

    server.close()
    await server.wait_closed()

    # Workaround for wait_closed() not quite doing
    # what I want.
    await asyncio.sleep(0)

    # I believe that all accepted connections have reached
    # connection_made() at this point.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34852>
_______________________________________


More information about the Python-bugs-list mailing list