Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
fe08db27
Commit
fe08db27
authored
8 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Remove explicit < 400 check as apparently this is confusing
parent
4c0ec15b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/util/retryutils.py
+1
-3
1 addition, 3 deletions
synapse/util/retryutils.py
with
1 addition
and
3 deletions
synapse/util/retryutils.py
+
1
−
3
View file @
fe08db27
...
...
@@ -129,9 +129,7 @@ class RetryDestinationLimiter(object):
# APIs may expect to never received e.g. a 404. It's important to
# handle 404 as some remote servers will return a 404 when the HS
# has been decommissioned.
if
exc_val
.
code
<
400
:
valid_err_code
=
True
elif
exc_val
.
code
==
404
and
self
.
backoff_on_404
:
if
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment