Skip to content

Conversation

@rytilahti
Copy link
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.

Copy link
Contributor

@kirichkov kirichkov left a comment

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
Copy link
Member Author

rytilahti commented May 27, 2020

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
Copy link
Contributor

@kirichkov kirichkov left a comment

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