From e22e06aa61aba695859bb565eee48c064aebd309 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sun, 9 Mar 2025 15:56:08 -0500 Subject: [PATCH] Set ttl to 60 seconds --- apps/proxy/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/proxy/config.py b/apps/proxy/config.py index 0ee6d1f8..8502371a 100644 --- a/apps/proxy/config.py +++ b/apps/proxy/config.py @@ -5,6 +5,8 @@ class BaseConfig: CHUNK_SIZE = 8192 CLIENT_POLL_INTERVAL = 0.1 MAX_RETRIES = 3 + # Redis settings + REDIS_CHUNK_TTL = 60 # Number in seconds - Chunks expire after 1 minute class HLSConfig(BaseConfig): MIN_SEGMENTS = 12 @@ -33,9 +35,8 @@ class TSConfig(BaseConfig): # Streaming settings TARGET_BITRATE = 8000000 # Target bitrate (8 Mbps) - STREAM_TIMEOUT = 30 # Disconnect after this many seconds of no data + STREAM_TIMEOUT = 10 # Disconnect after this many seconds of no data HEALTH_CHECK_INTERVAL = 5 # Check stream health every N seconds - # Redis settings - REDIS_CHUNK_TTL = 3600 # Chunks expire after 1 hour in Redis (renamed from REDIS_CHUNK_EXPIRY) + \ No newline at end of file