Skip to content

Add TTL-based cleanup for StreamInfos (30min, pruned every 5min)#52

Open
ryanbr wants to merge 1 commit intomasterfrom
feat/streaminfo-ttl-cleanup
Open

Add TTL-based cleanup for StreamInfos (30min, pruned every 5min)#52
ryanbr wants to merge 1 commit intomasterfrom
feat/streaminfo-ttl-cleanup

Conversation

@ryanbr
Copy link
Copy Markdown
Owner

@ryanbr ryanbr commented Apr 6, 2026

Prevents unbounded accumulation of stream session data when users hop between many channels. Entries not accessed for 30 minutes are pruned along with their StreamInfosByUrl references.

Timer-based pruning (every 5 minutes) avoids hot-path overhead. LastSeenAt updated on stream session access and m3u8 processing.

Prevents unbounded accumulation of stream session data when users hop
between many channels. Entries not accessed for 30 minutes are pruned
along with their StreamInfosByUrl references.

Timer-based pruning (every 5 minutes) avoids hot-path overhead.
LastSeenAt updated on stream session access and m3u8 processing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant