trollius icon indicating copy to clipboard operation
trollius copied to clipboard

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

Open maximbr opened this issue 10 years ago • 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().

maximbr avatar Dec 02 '15 12:12 maximbr

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

jamadden avatar Jul 30 '19 13:07 jamadden