Skip to content

remove memory leak in timing #242

Description

@Fi3

session timing collector grows without bound and recomputes snapshots from full history

src/debug_timing.rs stores every timing sample forever in Vec fields and
builds each snapshot by cloning and sorting the full sample history again.
Timing collection is gated by SV1_SESSION_TIMING, but when it is enabled on a
busy long-lived proxy the collector grows monotonically with connection/session
attempt volume and each /api/stats/session-timing snapshot becomes more
expensive over time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions