STINNER Victor added the comment: > Using call_soon_threadsafe from an addCleanup in the _server method makes it > work for me.
Maybe the documentation on thread safety should be improved? More warnings should be put in the documentation? https://docs.python.org/dev/library/asyncio-dev.html#concurrency-and-multithreading ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22572> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com