Skip to content

Conversation

@cheenamalhotra
Copy link
Member

@cheenamalhotra cheenamalhotra commented Oct 6, 2025

Additional change to #3653

Managing Semaphores with Disposable pattern may not be a good idea for .NET Framework applications (within CER enabled blocks). Reverting this change, to prevent any side effects.

@cheenamalhotra cheenamalhotra requested a review from a team as a code owner October 6, 2025 19:58
@Copilot Copilot AI review requested due to automatic review settings October 6, 2025 19:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors semaphore handling in the WaitHandleDbConnectionPool by removing the SemaphoreHolder helper class and implementing direct try/finally patterns for semaphore acquisition and release.

  • Removes the SemaphoreHolder helper class that was previously used for RAII-style semaphore management
  • Replaces using SemaphoreHolder statements with explicit try/finally blocks for semaphore handling
  • Maintains the same semaphore acquisition and release logic but with more explicit control flow

@cheenamalhotra cheenamalhotra added this to the 6.1.2 milestone Oct 6, 2025
mdaigle
mdaigle previously approved these changes Oct 6, 2025
benrr101
benrr101 previously approved these changes Oct 6, 2025
samsharma2700
samsharma2700 previously approved these changes Oct 6, 2025
@cheenamalhotra cheenamalhotra merged commit 607b8c9 into release/6.1 Oct 7, 2025
237 of 251 checks passed
@cheenamalhotra cheenamalhotra deleted the dev/cheena/remove-sem-holder branch October 7, 2025 04:47
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.

4 participants