[issue34680] asyncio event_loop fails when accessed from multiple threads
Andrew Svetlov
report at bugs.python.org
Wed Jan 26 05:41:20 EST 2022
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
BaseEventLoop has _check_loop() method that is closed in debug mode only.
UnixEventLoop doesn't call this method for unix-specific API.
Adding the check to add_signal_handler()/remove_signal_handler() doesn't hurt, sure.
But it doesn't help as the script is executed in non-debug mode.
Performing a check on every call_soon() call kills the performance, that's why debug mode is required.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34680>
_______________________________________
More information about the Python-bugs-list
mailing list