Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

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

Open
maximbr opened this issue Dec 2, 2015 · 1 comment
Open

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

maximbr opened this issue Dec 2, 2015 · 1 comment

Comments

@maximbr
Copy link

maximbr commented Dec 2, 2015

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().

@jamadden
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants