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

Increase Telegram polling period to 20 s #44

Closed
denis-stepanov opened this issue May 1, 2023 · 0 comments
Closed

Increase Telegram polling period to 20 s #44

denis-stepanov opened this issue May 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@denis-stepanov
Copy link
Owner

Currently we poll Telegram every 10 s. However, the default timeout for SSL connection is currently hardcoded in ESP Core to 15 s. Due to this, if there is a temporary problem with connection to Telegram, polls might become overlapping (because called via Ticker) and piling up, eventually leading to a crash. The solution would be to make timeout 20 s instead of 10. In this application it is not critical to have fast response from a Telegram bot.

Note that there is a fix in Core esp8266/Arduino#8889 making the timeout configurable. If that would be available, one can keep polling period at 10 s and make timeout something like 5 s instead of 15 s. A healthy Telegram poll takes about 2 s.

@denis-stepanov denis-stepanov added the bug Something isn't working label May 1, 2023
@denis-stepanov denis-stepanov added this to the v2.2.2 milestone May 1, 2023
@denis-stepanov denis-stepanov self-assigned this Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant