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

fix(iot-dev): Fix AMQP layer not releasing a semaphore for method links after unsubscribing from methods #1831

Merged
merged 1 commit into from Mar 12, 2021

Conversation

timtay-microsoft
Copy link
Member

This semaphore was just never released in this method

#1822 for additional context

…ks after unsubscribing from methods

This semaphore was just never released in this method
@@ -619,6 +619,7 @@ public async Task DisableMethodsAsync(TimeSpan timeout)
finally
{
Logging.Exit(this, timeout, nameof(DisableMethodsAsync));
_methodLinkSemaphore.Release();
Copy link
Member Author

Choose a reason for hiding this comment

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

You'll want to expand the view to see the whole method here. At line 593, this semaphore is grabbed. After that, the try block does some logic that may or may not throw an exception, so this finally block is the perfect place to release the semaphore

@timtay-microsoft
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@timtay-microsoft timtay-microsoft merged commit c3c15fe into master Mar 12, 2021
@timtay-microsoft timtay-microsoft deleted the timtay/semaphoreFix branch March 12, 2021 20:02
abhipsaMisra pushed a commit that referenced this pull request Mar 19, 2021
…ks after unsubscribing from methods (#1831)

This semaphore was just never released in this method
abhipsaMisra added a commit that referenced this pull request Mar 19, 2021
…thod links after unsubscribing from methods (#1831)"

This reverts commit 2fbd0c8.
abhipsaMisra added a commit that referenced this pull request Mar 19, 2021
…thod links after unsubscribing from methods (#1831)"

This reverts commit 2fbd0c8.
abhipsaMisra added a commit that referenced this pull request Mar 19, 2021
…thod links after unsubscribing from methods (#1831)"

This reverts commit 2fbd0c8.
vinagesh pushed a commit that referenced this pull request Mar 22, 2021
…ks after unsubscribing from methods (#1831)

This semaphore was just never released in this method
vipeller pushed a commit to vipeller/azure-iot-sdk-csharp that referenced this pull request Mar 25, 2021
…ks after unsubscribing from methods (Azure#1831)

This semaphore was just never released in this method

(cherry picked from commit c3c15fe)
vipeller pushed a commit to vipeller/azure-iot-sdk-csharp that referenced this pull request Mar 25, 2021
…ks after unsubscribing from methods (Azure#1831)

This semaphore was just never released in this method

(cherry picked from commit c3c15fe)
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