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

retry longhaul Device Method due to SAS refresh #1794

Merged
merged 4 commits into from
Dec 15, 2020
Merged

Conversation

ericwolz
Copy link
Contributor

@ericwolz ericwolz commented Dec 11, 2020

Checklist

  • I have read the [contribution guidelines] (https://github.com/Azure/azure-iot-sdk-c/blob/master/.github/CONTRIBUTING.md).
  • I added or modified the existing tests to cover the change (we do not allow our test coverage to go down).
  • If this is a modification that impacts the behavior of a public API
    • I edited the corresponding document in the devdoc folder and added or modified requirements.
  • I submitted this PR against the correct branch:
    • This pull-request is submitted against the master branch.
    • I have merged the latest master branch prior to submission and re-merged as needed after I took any feedback.
    • I have squashed my changes into one with a clear description of the change.

Reference/Link to the issue solved with this PR (if any)

Description of the problem

When the SAS token expires, we need to reconnect and if we send a device message we get an 404 error because the device is no longer connected

Description of the solution

retry the device method again after 60 seconds to allow the device to reconnect

@ericwolz ericwolz merged commit 9d3ad48 into master Dec 15, 2020
@ericwolz ericwolz deleted the ericwol/longhaul branch December 15, 2020 23:03
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