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

Bring semaphore synchronization updates in retry delegating handler to LTS #3148

Merged
merged 3 commits into from
Mar 8, 2023

Conversation

abhipsaMisra
Copy link
Member

#2209 : fix(iot-dev): Fix bug where client's retry policy applied n^2 times rather than n times
#3135 : Decouple client open-close semaphore from callback subscription semaphore

timtay-microsoft and others added 2 commits March 7, 2023 16:09
…ather than n times (#2209)

#2202

previously:
retry(retry(open) + send/receive/etc)

now:
retry(open + send/receive/etc)

This is as opposed to doing something like:
retry(open) + retry(send/receive/etc)

because the connection may be lost after the retry(open) block has finished, and we don't want to keep trying to send/receive/etc without checking that the connection is open first
* Decouple client open-close semaphore from callback subscription semaphore

* Cancel pending operations when CloseAsync() is invoked
@abhipsaMisra abhipsaMisra force-pushed the abmisr/semaphoreLts branch from a98e5d5 to e8f8ea6 Compare March 8, 2023 01:34
@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abhipsaMisra abhipsaMisra merged commit 6463887 into lts_2021_03 Mar 8, 2023
@abhipsaMisra abhipsaMisra deleted the abmisr/semaphoreLts branch March 8, 2023 04:09
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