feat(http): back off from hosts that answer 429 or 503
Object fetches and WebFinger stop sending requests to a host until Retry-After or X-RateLimit-Reset (default 5 minutes, max 1 hour). Ported from Akkoma's Pleroma.HTTP.Backoff. Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk> Co-authored-by: Oneric <oneric@oneric.stub>
This commit is contained in:
parent
3e9dc477c9
commit
8ce283f966
10 changed files with 330 additions and 5 deletions
1
changelog.d/http-backoff.add
Normal file
1
changelog.d/http-backoff.add
Normal file
|
|
@ -0,0 +1 @@
|
|||
Back off from hosts that answer 429 or 503 to object fetches and WebFinger, until Retry-After or X-RateLimit-Reset (default 5 minutes, max 1 hour)
|
||||
Loading…
Add table
Add a link
Reference in a new issue