Retry on `M_LIMIT_EXCEEDED`
还没有人认领这个 Issue。
评估
调研方向
从 HTTPAPI 现有的重试处理和 MLimitExceeded 路径开始;检查如何从 response 中读取 retry_after_ms,以及如何应用 backoff/retry_count。完成标准是:存在指定延迟时,M_LIMIT_EXCEEDED 会等待该延迟;否则遵循现有的回退重试行为,并覆盖这两种情况。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 249
- 派生
- 84
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mautrix/python 的其他 Issue
-
难度 5/5 一周以上 新手友好度 30/100
-
bug
难度 2/5 1-3 小时 新手友好度 45/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 30/100
-
难度 4/5 3-5 天 新手友好度 35/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100