summary refs log tree commit diff
path: root/synapse/http
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-12-29 00:58:34 +0000
committerErik Johnston <erik@matrix.org>2016-12-29 00:58:34 +0000
commitb4bc6fef5b2624f9f1a7319d266827027e260bec (patch)
treeb8b18a1bcd7370f6777bb9b34cd86fddff9177cf /synapse/http
parentSpelling and comments (diff)
downloadsynapse-b4bc6fef5b2624f9f1a7319d266827027e260bec.tar.xz
Respect long_retries param and default to off
Diffstat (limited to 'synapse/http')
-rw-r--r--synapse/http/matrixfederationclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index 4d40219fcc..78b92cef36 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -300,7 +300,7 @@ class MatrixFederationHttpClient(object):
         defer.returnValue(json.loads(body))
 
     @defer.inlineCallbacks
-    def post_json(self, destination, path, data={}, long_retries=True,
+    def post_json(self, destination, path, data={}, long_retries=False,
                   timeout=None):
         """ Sends the specifed json data using POST
 
@@ -333,7 +333,7 @@ class MatrixFederationHttpClient(object):
             path.encode("ascii"),
             body_callback=body_callback,
             headers_dict={"Content-Type": ["application/json"]},
-            long_retries=True,
+            long_retries=long_retries,
             timeout=timeout,
         )