mautrix / python

A Python 3 asyncio Matrix framework.
Mozilla Public License 2.0
183 stars 74 forks source link

Retry on `M_LIMIT_EXCEEDED` #135

Open Nils1729 opened 1 year ago

Nils1729 commented 1 year ago

It seems currently the HTTPAPI may retry after waiting a while on some network and client errors, but raises MLimitExceeded errors.

I would like to have the API wait for the retry_after_ms time specified in the response, and fall back to the backoff/retry_count method if it is missing.