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

Separate out semaphores for subscription and client open-close #3249

Merged
merged 1 commit into from Apr 5, 2023

Conversation

abhipsaMisra
Copy link
Member

No description provided.

@abhipsaMisra
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -137,18 +141,17 @@ await _internalRetryHandler
async () =>
{
await VerifyIsOpenAsync(cancellationToken).ConfigureAwait(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll renew my dislike for the semaphore wait to evaluate _isOpen. I don't see what it buys us, and it costs each operation an extra semaphore get.

Did you have a future plan to refactor that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yess, we'll get rid of the semaphores once we introduce the atomic variable for the state variable

@abhipsaMisra abhipsaMisra merged commit 8b64b7b into previews/v2 Apr 5, 2023
11 checks passed
@abhipsaMisra abhipsaMisra deleted the abmisr/splitSubscriptionSemaphore branch April 5, 2023 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.

None yet

2 participants