Skip to content

Potential memory leakage because of storing verified captchas in-memory #31

@musq

Description

@musq

I see that we are storing already encountered hashes in memory (via self.verified_captchas = set()). I feel this could cause scaling issues because we only ever add items to that set but never remove it.

Maybe we can use an lru cache like data structure to handle automated garbage collection.

If it is not possible to handle this right away, I believe we should mention this as a caution in the README, so people are aware of it.

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