mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-18 00:55:50 +00:00
Fix multiple VOD proxy connection counter leak paths that caused profile_connections to remain permanently elevated after client disconnects, leaving profiles locked at capacity. Changes: - Fix get_stream() race condition: save state under lock with fresh active_streams to prevent overwriting concurrent decrements during scrubbing/seeking (root cause of counter stuck after timeshift) - Add early active_streams increment in session reuse path to prevent cleanup race between GeneratorExit and new request - Add rollback on get_stream() returning None (range not satisfiable) - Add profile_id fallback to closure variable when Redis state is deleted before generator cleanup runs - Change increment/decrement return types and add warning logs for lock acquisition and state failures - Clean up debug traceback logging from increment/decrement methods |
||
|---|---|---|
| .. | ||
| hls_proxy | ||
| management/commands | ||
| ts_proxy | ||
| vod_proxy | ||
| __init__.py | ||
| apps.py | ||
| config.py | ||
| signals.py | ||
| tasks.py | ||
| urls.py | ||
| views.py | ||