Skip to content

Memory leak in rate limiter storage #1

Description

@Diode11-Alt

The rate limiter in app.py doesn't clean up stale IP address keys from the rate_limit_storage dictionary. This leads to unbounded memory growth and could eventually crash the process on long-running deployments. We need a cleanup mechanism when the storage exceeds a certain threshold.

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