mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-03-28 17:43:06 +01:00
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:
@@ -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,
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user