-
Notifications
You must be signed in to change notification settings - Fork 226
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
ExponentialBackOffWithJitter algorithm not implemented as documented #338
Comments
@smanousos the PR is out - the fix will be part of our next release. That was an embarassing one... thanks for finding this!! I will update this issue when the fix is checked in and again when it is released. |
"embarrassing": been there, done that. |
packages were published (v1.7.2) with the fix included. Thanks a lot for reporting this! |
@smanousos, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey |
azure-iot-common version 1.7.1, retry_policy.js line 93:
return Math.min(constants.cMin + (Math.pow(retryCount - 1, 2) - 1) * randomJitter, constants.cMax);
This uses (retryCount - 1)^2. To match the documentation it should be 2^(retryCount - 1)
The text was updated successfully, but these errors were encountered: