Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add retries to protocol queries#65

Merged
kirichkov merged 3 commits into
python-kasa:masterpython-kasa/python-kasa:masterfrom
rytilahti:feature/add_retriesrytilahti/python-kasa:feature/add_retriesCopy head branch name to clipboard
May 27, 2020
Merged

Add retries to protocol queries#65
kirichkov merged 3 commits into
python-kasa:masterpython-kasa/python-kasa:masterfrom
rytilahti:feature/add_retriesrytilahti/python-kasa:feature/add_retriesCopy head branch name to clipboard

Conversation

@rytilahti

Copy link
Copy Markdown
Member

Add retry logic to protocol class. Defaults to 3 re-tries, so up to 4 queries are automatically tried.

This is based on #63.

Fixes #38

@codecov-commenter

This comment has been minimized.

@kirichkov kirichkov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The diff looks like it includes a lot more than simple retry functionality and I think part of #63 . Is this on purpose?

@rytilahti

rytilahti commented May 27, 2020

Copy link
Copy Markdown
Member Author

Yes, I'll rebase this on top of the master after that cleanup PR gets merged :-)

edit: rebase done

@rytilahti rytilahti force-pushed the feature/add_retries branch from f0cf2d3 to 3aac122 Compare May 27, 2020 14:59

@kirichkov kirichkov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner now! Good to go!

@kirichkov kirichkov merged commit 9dc0cba into python-kasa:master May 27, 2020
@rytilahti rytilahti deleted the feature/add_retries branch May 27, 2020 17:06
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.

Improve retry logic for discovery, messaging (was: Handle empty responses)

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.