[issue36626] asyncio run_forever blocks indefinitely

2019-04-17 Thread Dan Timofte
Dan Timofte added the comment: `loop.call_soon_threadsafe(loop.stop)` solves the problem because it has the write_to_self there. I can use that or call loop._write_to_self() myself before calling loop.stop(). In my code i'm stoping the loop from the exception_handler not signal. The

[issue36626] asyncio run_forever blocks indefinitely

2019-04-15 Thread Dan Timofte
Change by Dan Timofte : -- keywords: +patch pull_requests: +12770 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36626> ___ ___ Py

[issue36626] asyncio run_forever blocks indefinitely

2019-04-14 Thread Dan Timofte
Dan Timofte added the comment: i will provide a patch, i'll make a pull request next week. a call to self._write_to_self() should also be added to create_task() before it returns . i'll make the correction for this as well. -- ___ Pyth

[issue36626] asyncio run_forever blocks indefinitely

2019-04-13 Thread Dan Timofte
Change by Dan Timofte : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue36626> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue36626] asyncio run_forever blocks indefinitely

2019-04-13 Thread Dan Timofte
New submission from Dan Timofte : after starting run_forever if all scheduled tasks are consumed run_once will issue a KqueueSelector.select(None) which will block indefinitely : https://www.freebsd.org/cgi/man.cgi?query=select&sektion=2&apropos=0&manpath=FreeBSD+12.0-RELEA