Merge pull request #160 from agessaman/feat/companion-timeout-change

fix: update default client idle timeout to 8 hours in RepeaterDaemon …
This commit is contained in:
Lloyd
2026-03-26 09:21:26 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ class CompanionFrameServer(_BaseFrameServer):
companion_hash: str,
port: int = 5000,
bind_address: str = "0.0.0.0",
client_idle_timeout_sec: Optional[int] = 120,
client_idle_timeout_sec: Optional[int] = 8 * 60 * 60, # 8 hours
sqlite_handler=None,
local_hash: Optional[int] = None,
stats_getter=None,

View File

@@ -439,7 +439,7 @@ class RepeaterDaemon:
node_name = settings.get("node_name", name)
tcp_port = settings.get("tcp_port", 5000)
bind_address = settings.get("bind_address", "0.0.0.0")
tcp_timeout_raw = settings.get("tcp_timeout", 120)
tcp_timeout_raw = settings.get("tcp_timeout", 8 * 60 * 60) # 8 hours
client_idle_timeout_sec = None if tcp_timeout_raw == 0 else int(tcp_timeout_raw)
def _make_sync_node_name_to_config(companion_name: str):