jamadden/trollius

sleep() may cause memory leak (python < 3.4)

maximbr opened this issue · 1 comments

Due to python issue https://bugs.python.org/issue17468 wraping a yield in a try clause will cause the generator to be uncollected by gc.
This is the case with the sleep() function in https://github.com/haypo/trollius/blob/trollius/trollius/tasks.py.
When the event loop is closed before the sleep() is done, the generator will be left uncollected, with all references in the coroutine that called sleep().

Thank you for the report. Unfortunately this project is not maintained and not expecting to make any changes.