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

Add retries and some back-off when fetching an update from the OTA url. #204

Closed
wants to merge 3 commits into from
Closed

Conversation

crankyoldgit
Copy link

@crankyoldgit crankyoldgit commented Jan 6, 2017

This reduces an issue when a 'cmnd/<group_topic>/update 1' is performed, causing all the sonoffs to overload the OTA server and failing to update due to the OTA web server running out of threads.

Also removed trailing white space.

  update. This avoids an issue when a 'cmnd/<group_topic>/update 1' is
  performed, causing all the sonoffs overloading the OTA server and failing to
  update.
* Trimmed trailing white space.
@arendst
Copy link
Owner

arendst commented Jan 6, 2017

Like it!

@crankyoldgit
Copy link
Author

I should add, I've tested it. Works as expected. ie. short-circuits after a successful fetch and only tries the number of times on failed fetches before reporting an error per norm.

arendst added a commit that referenced this pull request Jan 6, 2017
3.1.12 20170106
* Add OTA retry to solve possible HTTP transient errors (#204)
* Fix MQTT host discovery
@arendst
Copy link
Owner

arendst commented Jan 6, 2017

Implemented in version 3.1.12 just released

@arendst arendst added the solved label Jan 6, 2017
@arendst arendst closed this Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants