Skip to content

Fix bugs in shadow sample. #204

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

Merged
merged 1 commit into from
Jun 1, 2021
Merged

Fix bugs in shadow sample. #204

merged 1 commit into from
Jun 1, 2021

Conversation

graebm
Copy link
Contributor

@graebm graebm commented May 27, 2021

  • Wait until we've subscribed to all "reponse" topics before subscribing to "delta". This fixes a bug where a "delta" that fires right away, results in a "update-request" being sent, but we're not yet subscrubed to the "update-response".

  • Connect with clean_session=True. This avoids weird stuff where we get responses to old requests immediately upon subscribing.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- Wait until we've subscribed to all "reponse" topics before subscribing to "delta". This fixes a bug where a "delta" that fires right away, results in a "update-request" being sent, but we're not yet subscrubed to the "update-response".

- Connect with clean_session=True. This avoids weird stuff where we get responses to old requests immediately upon subscribing.
@graebm graebm merged commit 17da3af into main Jun 1, 2021
@graebm graebm deleted the shadow-sample-bug branch June 1, 2021 22:12
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