summary refs log tree commit diff
path: root/synapse/http/matrixfederationclient.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-03-13 19:18:25 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-03-13 19:18:25 +0000
commit66cdb840a6fdf24431cce50e776d65290c419c86 (patch)
tree374128cf53b350cf5d9ec664b78317522c9170ef /synapse/http/matrixfederationclient.py
parentgo home python, you're drunk (diff)
downloadsynapse-66cdb840a6fdf24431cce50e776d65290c419c86.tar.xz
Or perhaps I was the one who was drunk
Diffstat (limited to '')
-rw-r--r--synapse/http/matrixfederationclient.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index de6bc4de00..f596ccfdf4 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -193,7 +193,6 @@ class MatrixFederationHttpClient(object):
             self,
             request,
             try_trailing_slash_on_400=False,
-            backoff_on_404=False,
             **kwargs):
         """Wrapper for _send_request which can optionally retry the request
         upon receiving a combination of a 400 HTTP response code and a
@@ -205,9 +204,6 @@ class MatrixFederationHttpClient(object):
             try_trailing_slash_on_400 (bool): Whether on receiving a 400
                 'M_UNRECOGNIZED' from the server to retry the request with a
                 trailing slash appended to the request path.
-            backoff_on_404 (bool): Whether to backoff on 404 when making a
-                request with a trailing slash (only affects request if
-                try_trailing_slash_on_400 is True).
             kwargs (Dict): A dictionary of arguments to pass to
                 `_send_request()`.
 
@@ -585,7 +581,7 @@ class MatrixFederationHttpClient(object):
         }
 
         response = yield self._send_request_with_optional_trailing_slash(
-            request, try_trailing_slash_on_400, backoff_on_404, **send_request_args)
+            request, try_trailing_slash_on_400, **send_request_args)
 
         body = yield _handle_json_response(
             self.hs.get_reactor(), self.default_timeout, request, response,
@@ -701,10 +697,11 @@ class MatrixFederationHttpClient(object):
             "retry_on_dns_fail": retry_on_dns_fail,
             "timeout": timeout,
             "ignore_backoff": ignore_backoff,
+            "backoff_on_404": False,
         }
 
         response = yield self._send_request_with_optional_trailing_slash(
-            request, try_trailing_slash_on_400, False, **send_request_args)
+            request, try_trailing_slash_on_400, **send_request_args)
 
         body = yield _handle_json_response(
             self.hs.get_reactor(), self.default_timeout, request, response,