From f0cebd86517be647088a03592880b259d88ea703 Mon Sep 17 00:00:00 2001 From: Michael Kaye <1917473+michaelkaye@users.noreply.github.com> Date: Fri, 6 Mar 2020 14:48:04 +0000 Subject: Make the repliation timeout 60s not 25s. Initial synchrotrons under high load can timeout due to servicing a long initial sync, causing errors and reconnections that are not required. Increase the timeout to prevent this. --- synapse/replication/tcp/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/replication/tcp/protocol.py b/synapse/replication/tcp/protocol.py index bc1482a9bb..08474ea15e 100644 --- a/synapse/replication/tcp/protocol.py +++ b/synapse/replication/tcp/protocol.py @@ -100,7 +100,7 @@ logger = logging.getLogger(__name__) PING_TIME = 5000 -PING_TIMEOUT_MULTIPLIER = 5 +PING_TIMEOUT_MULTIPLIER = 12 PING_TIMEOUT_MS = PING_TIME * PING_TIMEOUT_MULTIPLIER -- cgit 1.4.1