summary refs log tree commit diff
path: root/synapse/federation/replication.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-12-08 00:17:12 +0000
committerMatthew Hodgson <matthew@matrix.org>2014-12-08 00:17:12 +0000
commit9c43b258ecc493b126ef2858b9bb8fda0f01478a (patch)
treef277d0ee5cacef5c43b94934e5817121cd37789d /synapse/federation/replication.py
parentfix stupid syntax thinkos (diff)
downloadsynapse-9c43b258ecc493b126ef2858b9bb8fda0f01478a.tar.xz
actually reset retry schedule if we can successfuly talk to it
Diffstat (limited to 'synapse/federation/replication.py')
-rw-r--r--synapse/federation/replication.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/federation/replication.py b/synapse/federation/replication.py
index 1b9e3ece09..88184caecd 100644
--- a/synapse/federation/replication.py
+++ b/synapse/federation/replication.py
@@ -864,6 +864,9 @@ class _TransactionQueue(object):
 
             for deferred in deferreds:
                 if code == 200:
+                    if retry_last_ts:
+                        # this host is alive! reset retry schedule
+                        self.store.set_destination_retry_timings(destination, 0, 0)
                     deferred.callback(None)
                 else:
                     self.start_retrying(destination, retry_interval)