summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-31 13:53:46 +0000
committerErik Johnston <erik@matrix.org>2017-01-31 13:53:46 +0000
commit4c0ec15bdcb8fbecf5e4f6cdd3017c9c53076972 (patch)
treefc19c5a5b97ce1b7e68b6bc9001824599c68d548 /synapse
parentComment (diff)
downloadsynapse-4c0ec15bdcb8fbecf5e4f6cdd3017c9c53076972.tar.xz
Comment
Diffstat (limited to '')
-rw-r--r--synapse/util/retryutils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/util/retryutils.py b/synapse/util/retryutils.py
index 0961dd5b25..5c7fc1afb4 100644
--- a/synapse/util/retryutils.py
+++ b/synapse/util/retryutils.py
@@ -134,6 +134,8 @@ class RetryDestinationLimiter(object):
             elif exc_val.code == 404 and self.backoff_on_404:
                 valid_err_code = False
             elif exc_val.code == 429:
+                # 429 is us being aggresively rate limited, so lets rate limit
+                # ourselves.
                 valid_err_code = False
             elif exc_val.code < 500:
                 valid_err_code = True