Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry login after intervals specified by the server #94

Closed
wants to merge 2 commits into from

Conversation

aperezdc
Copy link
Contributor

Sleep for the duration indicated by the server on M_LIMIT_EXCEEDED responses, or immediately if no time specified.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Sleep for the duration indicated by the server on M_LIMIT_EXCEEDED
responses, or immediately if no time specified.
@haecker-felix
Copy link
Owner

Since the issue only occurred with a malfunctioning homeserver, and never caused any issue anywhere else, I think this extra code is not needed. I also don't think that this quite simple bot is able to get rate limited with M_LIMIT_EXCEEDED.

@aperezdc
Copy link
Contributor Author

aperezdc commented Feb 9, 2025

Since the issue only occurred with a malfunctioning homeserver, and never caused any issue anywhere else, I think this extra code is not needed. I also don't think that this quite simple bot is able to get rate limited with M_LIMIT_EXCEEDED.

Agreed, this helped debug a particular issue with our homeserver, but in general I would not expect people to hit a rate-limit situation during login in normal operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants