-
Notifications
You must be signed in to change notification settings - Fork 16
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
Adds mutex to SHA256withRSA for multi-threading #48
Conversation
MbedTLS has thread-safety issues (Mbed-TLS/mbedtls#3391, Mbed-TLS/mbedtls#3391), affecting GoogleCloud.jl. This lock seems to solve the problem.
Codecov Report
@@ Coverage Diff @@
## master #48 +/- ##
=========================================
- Coverage 0.68% 0.68% -0.01%
=========================================
Files 10 10
Lines 436 440 +4
=========================================
Hits 3 3
- Misses 433 437 +4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The general idea seems good; I wonder though if we should just put this global lock in MbedTLS.jl itself, since others may run into this problem as well? We could make a similar PR to that package and then bump the minimum required version here.
Co-authored-by: Jacob Quinn <quinn.jacobd@gmail.com>
Co-authored-by: Jacob Quinn <quinn.jacobd@gmail.com>
@quinnj sounds good to me, although here it's pretty easy to isolate where to put the lock, and back in MbedTLS.jl we'll probably like to find other spots?... Anyways, I created a PR over there too. JuliaLang/MbedTLS.jl#244 |
@quinnj I suppose we'll still need to pull the latest MbedTLS here now? How can we do that? |
You can set the max version in the Project.toml, JuliaDocs for how to do set the compat. |
The change to |
@mattBrzezinski |
You could create a PR to set the minimum version in the compat section here to |
MbedTLS has thread-safety issues (Mbed-TLS/mbedtls#3391, Mbed-TLS/mbedtls#3391), affecting GoogleCloud.jl. This lock seems to solve the problem.