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

Decouple client open-close semaphore from callback subscription semaphore #3135

Merged
merged 19 commits into from
Mar 7, 2023

Conversation

abhipsaMisra
Copy link
Member

The sepmaphores associated with enabling and disabling subscriptions for callbacks should not be dependent on the Semaphore used for opening or closing the client.
The only purpose of the enable-disable events semaphore is to ensure that requests to enable and disable the subscription invoked by parallel threads are executed in a thread-safe manner.

@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abhipsaMisra abhipsaMisra enabled auto-merge (squash) March 7, 2023 22:21
@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abhipsaMisra abhipsaMisra disabled auto-merge March 7, 2023 23:15
@abhipsaMisra abhipsaMisra enabled auto-merge (squash) March 7, 2023 23:24
@abhipsaMisra abhipsaMisra merged commit d297180 into main Mar 7, 2023
@abhipsaMisra abhipsaMisra deleted the abmisr/semaphore branch March 7, 2023 23:51
abhipsaMisra added a commit that referenced this pull request Mar 8, 2023
* Decouple client open-close semaphore from callback subscription semaphore

* Cancel pending operations when CloseAsync() is invoked
abhipsaMisra added a commit that referenced this pull request Mar 8, 2023
* Decouple client open-close semaphore from callback subscription semaphore

* Cancel pending operations when CloseAsync() is invoked
abhipsaMisra added a commit that referenced this pull request Mar 8, 2023
* Decouple client open-close semaphore from callback subscription semaphore

* Cancel pending operations when CloseAsync() is invoked
abhipsaMisra added a commit that referenced this pull request Mar 8, 2023
* Decouple client open-close semaphore from callback subscription semaphore

* Cancel pending operations when CloseAsync() is invoked
abhipsaMisra added a commit that referenced this pull request Mar 8, 2023
…o LTS (#3148)

* fix(iot-dev): Fix bug where client's retry policy applied n^2 times rather than n times (#2209)
* Fix synchronization of semaphore in retry delegating handler (#3135)
---------

Co-authored-by: timtay-microsoft <[email protected]>
timstewartm pushed a commit to timstewartm/azure-iot-sdk-csharp that referenced this pull request May 30, 2024
)

* Decouple client open-close semaphore from callback subscription semaphore

* Cancel pending operations when CloseAsync() is invoked
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