Backoff for 401s

This commit is contained in:
Neil Alexander 2020-09-08 10:45:02 +01:00
parent 726ad6ce2e
commit d9a2f834d3
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -70,7 +70,10 @@ func failBlacklistableError(err error, stats *statistics.ServerStatistics) (unti
if !ok {
return stats.Failure()
}
if mxerr.Code >= 500 && mxerr.Code < 600 {
if mxerr.Code == 401 { // invalid signature in X-Matrix header
return stats.Failure()
}
if mxerr.Code >= 500 && mxerr.Code < 600 { // internal server errors
return stats.Failure()
}
return