-
Notifications
You must be signed in to change notification settings - Fork 56
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
Needs an uninstall
#121
Comments
Our primary recommendation is to install ACCP at the server level rather than within a servlet or webapp. However, we will look into ways to address this. Do you have any information on how other libraries have addressed this issue? |
The best way I can think of is to create a webapp which loads up Cornetto as part of the servlet context However, |
|
I asked SO for some assitance on this https://stackoverflow.com/questions/63623208/how-do-i-determine-if-there-are-any-lingering-threadlocals-or-threads-on-java-wi?noredirect=1#comment112508343_63623208 This answer shows how to remove but I don't recommend you do it. But somehow change it so that it lists them. |
I have a few ideas of ways to fix this by eliminating most of my static fields which chain to thread locals (and am investigating them). However, instantiating cryptographic providers of any time (not just ACCP) can be computationally expensive. You really should try to install it once at the server level and leave it installed and alone. |
Yup I already have done that. It was more for the uncerntainty before
(Edited by SalusaSecondus to remove weird formatting and HTML from email response)
|
Note I'm labelling this as "enhancement" given our recommendation against use cases that require uninstallation. It still may be better to use ThreadLocals in a friendlier way, but sounds like more investigation is still needed. |
When starting this up using a ServletContextListener and terminating the application it says that there are ThreadLocals that are still remaining.
Calling Security.removeProvider doesn't resolve the threadlocal issues
Here's the output when terminating.
The text was updated successfully, but these errors were encountered: