diff options
author | Erik Johnston <erikj@matrix.org> | 2023-09-04 14:04:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-04 14:04:43 +0100 |
commit | f84baecb6f57b5ddb570c43574f774fae5e8afed (patch) | |
tree | 2caa954af94803230112bdc64f885588afa82027 /synapse/federation | |
parent | Bump furo from 2023.7.26 to 2023.8.19 (#16238) (diff) | |
download | synapse-f84baecb6f57b5ddb570c43574f774fae5e8afed.tar.xz |
Don't reset retry timers on "valid" error codes (#16221)
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/transport/client.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index 5ce3f345cb..b5e4b2680e 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -249,8 +249,10 @@ class TransportLayerClient: data=json_data, json_data_callback=json_data_callback, long_retries=True, - backoff_on_404=True, # If we get a 404 the other side has gone try_trailing_slash_on_400=True, + # Sending a transaction should always succeed, if it doesn't + # then something is wrong and we should backoff. + backoff_on_all_error_codes=True, ) async def make_query( |