From fd9ca283169c1eb18455424dcecf9f0d1001e653 Mon Sep 17 00:00:00 2001 From: cmcpherson274 Date: Sun, 15 Mar 2026 12:08:32 -0400 Subject: [PATCH] Modify client TTL handling in client_manager.py Updated client manager to refresh TTL without updating last_active timestamp. --- apps/proxy/ts_proxy/client_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/proxy/ts_proxy/client_manager.py b/apps/proxy/ts_proxy/client_manager.py index 836f719e..a89f543b 100644 --- a/apps/proxy/ts_proxy/client_manager.py +++ b/apps/proxy/ts_proxy/client_manager.py @@ -158,9 +158,8 @@ class ClientManager: if time_since_heartbeat < self.heartbeat_interval * 0.5: # Only heartbeat at half interval minimum continue - # Only update clients that remain + # Only refresh TTL - do NOT update last_active client_key = f"ts_proxy:channel:{self.channel_id}:clients:{client_id}" - pipe.hset(client_key, "last_active", str(current_time)) pipe.expire(client_key, self.client_ttl) # Keep client in the set with TTL