-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-999: Release permit when channel is closed
Resolves #999 The previous commit fixes permit releases when the close is deferred waiting for confirms. For logical closes, the `releasePermitIfNecessary()` was moved to `returnToCache`. However, if `logicalClose()` detects the underlying channel is already closed, it is not returned to the cache, it is discarded. In this case, `logicalClose()` must release the permit. Add a test case to expose the issue and verify it's corrected. **cherry-pick to 2.1.x**
- Loading branch information
1 parent
fb278e5
commit 6d04c21
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters