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

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

@maximbr

Description

@maximbr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions