-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-18250] Check Error Before Returning Session to Pool (#1937)
FAB-17722 introduced logic for evicting invalid sessions from the pkcs11 session pool. The GetSessionInfo call was expensive, taking nearly a full second per call. The change was reverted in FAB-18242. This change introduces a new method for evicting sessions by checking the error message returned when pkcs11 call fail and closing sessions that resulted in SESSION errors. Signed-off-by: Brett Logan <[email protected]>
- Loading branch information
Brett Logan
authored
Sep 29, 2020
1 parent
765bb73
commit 61c05b8
Showing
2 changed files
with
46 additions
and
4 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