Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

figure out which federation errors should cause backoff #9373

Closed
richvdh opened this issue Feb 10, 2021 · 1 comment
Closed

figure out which federation errors should cause backoff #9373

richvdh opened this issue Feb 10, 2021 · 1 comment

Comments

@richvdh
Copy link
Member

richvdh commented Feb 10, 2021

currently the federation sender will back off sending transactions to a host which returns:

  • a 50x error
  • a 401
  • a 429
  • a 404, but only for certain endpoints

(see https://github.com/matrix-org/synapse/blob/v1.26.0/synapse/util/retryutils.py#L176-L183)

This seems... arbitrary. For example, a homeserver which has been configured with a federation whitelist will return a 403 to any homeserver not on that whitelist. Surely we should back off in that case.

@richvdh
Copy link
Member Author

richvdh commented Feb 10, 2021

dup #5442

@richvdh richvdh closed this as completed Feb 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant