summary refs log tree commit diff
path: root/synapse/federation/transaction_queue.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-02-01 15:56:16 +0000
committerGitHub <noreply@github.com>2017-02-01 15:56:16 +0000
commit96355d2f2f343085a51217e1544694e50a274a4b (patch)
tree85993103acc1b45214bacf3d47c6b67af5dd09e5 /synapse/federation/transaction_queue.py
parentWake sync up for device changes (diff)
parentCorrectly raise exceptions for ratelimitng. Ratelimit on 401 (diff)
downloadsynapse-96355d2f2f343085a51217e1544694e50a274a4b.tar.xz
Merge pull request #1871 from matrix-org/erikj/ratelimit_401
Correctly raise exceptions for ratelimitng. Ratelimit on 401
Diffstat (limited to 'synapse/federation/transaction_queue.py')
-rw-r--r--synapse/federation/transaction_queue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py
index cb106c6a1b..bb3d9258a6 100644
--- a/synapse/federation/transaction_queue.py
+++ b/synapse/federation/transaction_queue.py
@@ -504,7 +504,7 @@ class TransactionQueue(object):
                     code = e.code
                     response = e.response
 
-                    if e.code == 429 or 500 <= e.code:
+                    if e.code in (401, 404, 429) or 500 <= e.code:
                         logger.info(
                             "TX [%s] {%s} got %d response",
                             destination, txn_id, code