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

Avoid int64 overflow when doubling backoff #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Pash237
Copy link

@Pash237 Pash237 commented Jul 13, 2023

Doubling backoff will overflow int64 after around 30 minutes with no internet connection.
Also It makes a little sense to retry with such long intervals.

Added a 10 minute limit to avoid this.

@Pash237
Copy link
Author

Pash237 commented Jul 13, 2023

We had an issue when this delay turn to zero after some time, which leads to lots of requests being sent and device overheat.

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.

2 participants