diff options
author | Erik Johnston <erik@matrix.org> | 2016-12-29 00:58:34 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-12-29 00:58:34 +0000 |
commit | b4bc6fef5b2624f9f1a7319d266827027e260bec (patch) | |
tree | b8b18a1bcd7370f6777bb9b34cd86fddff9177cf /synapse | |
parent | Spelling and comments (diff) | |
download | synapse-b4bc6fef5b2624f9f1a7319d266827027e260bec.tar.xz |
Respect long_retries param and default to off
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/http/matrixfederationclient.py | 4 |
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, ) |