diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-01-03 14:19:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-03 14:19:09 +0000 |
commit | 6964ea095bbd474b5c2b9dfe99c817cd370987bf (patch) | |
tree | 9b05ec0f71c586bce5e25b0622ab78af5a84727c /synapse/replication/tcp/client.py | |
parent | Added the section 'Configuration' in /docs/turn-howto.md (#6614) (diff) | |
download | synapse-6964ea095bbd474b5c2b9dfe99c817cd370987bf.tar.xz |
Reduce the reconnect time when replication fails. (#6617)
Diffstat (limited to '')
-rw-r--r-- | synapse/replication/tcp/client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py index fead78388c..bbcb84646c 100644 --- a/synapse/replication/tcp/client.py +++ b/synapse/replication/tcp/client.py @@ -46,7 +46,8 @@ class ReplicationClientFactory(ReconnectingClientFactory): is required. """ - maxDelay = 30 # Try at least once every N seconds + initialDelay = 0.1 + maxDelay = 1 # Try at least once every N seconds def __init__(self, hs, client_name, handler: AbstractReplicationClientHandler): self.client_name = client_name |