Dispatcharr/apps/proxy/live_proxy/tests
SergeantPanda 64912c6164 fix(live): prevent geventpool DB connection leaks and enhance channel name resolution (Fixes #1418)
This update addresses a critical issue where geventpool database connections were not properly released during stream setup and teardown, potentially leading to resource exhaustion. The `close_old_connections()` method is now consistently called in `finally` blocks across various components, ensuring that connections are released even in the event of exceptions. Additionally, the logic for resolving channel and stream names has been improved to prioritize caller-supplied names and Redis values, reducing reliance on ORM during initialization. This change enhances performance and stability, particularly in high-load scenarios. Tests have been updated to validate these improvements.
2026-07-19 14:06:14 +00:00
..
__init__.py tests: Move tests to under tests folder. 2026-07-07 18:51:35 +00:00
test_alternate_stream_order.py Enhancement: Improve live proxy failover logic by resetting connection retries after a specified period of stability and ensuring backup streams are rotated in channel order. Update changelog to reflect these changes. 2026-07-06 19:11:32 -05:00
test_buffering_state_recovery.py fix(live): resolve Redis state latching issue during buffering-timeout failover (Fixes #1449) 2026-07-17 22:31:42 +00:00
test_failover_retry_window.py Enhancement: Improve live proxy failover logic by resetting connection retries after a specified period of stability and ensuring backup streams are rotated in channel order. Update changelog to reflect these changes. 2026-07-06 19:11:32 -05:00
test_live_db_cleanup.py fix(live): prevent geventpool DB connection leaks and enhance channel name resolution (Fixes #1418) 2026-07-19 14:06:14 +00:00
test_proxy_settings.py refactor(proxy): Add new client connect grace period setting and update channel initialization grace period defaults. The channel_client_wait_period is introduced to manage channel lifetimes before client connections, while the channel_init_grace_period default is increased to improve failover handling. 2026-06-28 11:34:44 -05:00
test_stream_ts_client_registration.py Enhancement: Prevent 500 errors in live proxy preview when joining active channels on non-owner workers by ensuring proper client registration and cleanup. Update changelog to reflect this fix. 2026-07-06 21:05:09 -05:00
test_vlc_failover.py Enhancement: Implement live proxy failover for VLC stream profile, ensuring proper handling of upstream URL failures. Update changelog to reflect changes in stream management and VLC profile parameters. 2026-07-06 16:45:56 -05:00