mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-07-21 09:03:23 +02: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,
|
companion_hash: str,
|
||||||
port: int = 5000,
|
port: int = 5000,
|
||||||
bind_address: str = "0.0.0.0",
|
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,
|
sqlite_handler=None,
|
||||||
local_hash: Optional[int] = None,
|
local_hash: Optional[int] = None,
|
||||||
stats_getter=None,
|
stats_getter=None,
|
||||||
|
|||||||
+1
-1
@@ -439,7 +439,7 @@ class RepeaterDaemon:
|
|||||||
node_name = settings.get("node_name", name)
|
node_name = settings.get("node_name", name)
|
||||||
tcp_port = settings.get("tcp_port", 5000)
|
tcp_port = settings.get("tcp_port", 5000)
|
||||||
bind_address = settings.get("bind_address", "0.0.0.0")
|
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)
|
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):
|
def _make_sync_node_name_to_config(companion_name: str):
|
||||||
|
|||||||
Reference in New Issue
Block a user