mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 14:53:10 -06:00
Backoff for 401s
This commit is contained in:
parent
726ad6ce2e
commit
d9a2f834d3
|
|
@ -70,7 +70,10 @@ func failBlacklistableError(err error, stats *statistics.ServerStatistics) (unti
|
||||||
if !ok {
|
if !ok {
|
||||||
return stats.Failure()
|
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 stats.Failure()
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue