diff options
author | Erik Johnston <erik@matrix.org> | 2019-02-26 15:12:29 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-02-26 15:12:33 +0000 |
commit | 25814921f1900e92b50830d6616762b174e82773 (patch) | |
tree | 904ebeed1660a6fb6f2c812df52ca956e1f5d7ea /synapse/replication/tcp/client.py | |
parent | Fix tightloop over connecting to replication server (diff) | |
download | synapse-25814921f1900e92b50830d6616762b174e82773.tar.xz |
Increase the max delay between retry attempts
Otherwise if you have many workers they can easily take out master with their connection attempts
Diffstat (limited to 'synapse/replication/tcp/client.py')
-rw-r--r-- | synapse/replication/tcp/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py index 914cd24b55..51f90655d0 100644 --- a/synapse/replication/tcp/client.py +++ b/synapse/replication/tcp/client.py @@ -39,7 +39,7 @@ class ReplicationClientFactory(ReconnectingClientFactory): Accepts a handler that will be called when new data is available or data is required. """ - maxDelay = 5 # Try at least once every N seconds + maxDelay = 30 # Try at least once every N seconds def __init__(self, hs, client_name, handler): self.client_name = client_name |