diff options
author | Erik Johnston <erikj@jki.re> | 2016-11-24 15:27:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-24 15:27:19 +0000 |
commit | 9192e593ec7a1501cda7df8ab79ecba586e5c3a2 (patch) | |
tree | 0c373f5d2d3e923065e2372018f1c0a4371bd4a4 /synapse/federation/transaction_queue.py | |
parent | Bump version and changelog (diff) | |
parent | Use correct var (diff) | |
download | synapse-9192e593ec7a1501cda7df8ab79ecba586e5c3a2.tar.xz |
Merge pull request #1650 from matrix-org/erikj/respect_ratelimited
Correctly handle 500's and 429 on federation
Diffstat (limited to 'synapse/federation/transaction_queue.py')
-rw-r--r-- | synapse/federation/transaction_queue.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py index c94c74a67e..51b656d74a 100644 --- a/synapse/federation/transaction_queue.py +++ b/synapse/federation/transaction_queue.py @@ -462,6 +462,13 @@ class TransactionQueue(object): code = e.code response = e.response + if e.code == 429 or 500 <= e.code: + logger.info( + "TX [%s] {%s} got %d response", + destination, txn_id, code + ) + raise e + logger.info( "TX [%s] {%s} got %d response", destination, txn_id, code |