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

[FAB-18250] Cherry-Pick -- Check Error Before Returning Session to Pool #1938

Merged
merged 1 commit into from
Sep 28, 2020
Merged

[FAB-18250] Cherry-Pick -- Check Error Before Returning Session to Pool #1938

merged 1 commit into from
Sep 28, 2020

Conversation

lindluni
Copy link
Contributor

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 brett.t.logan@ibm.com

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 <brett.t.logan@ibm.com>
@lindluni lindluni requested a review from a team as a code owner September 28, 2020 18:12
@caod123 caod123 merged commit 56a81f7 into hyperledger:release-1.4 Sep 28, 2020
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