Comments (5)
We do support some locking (see the datalock
and waitlock
fields in this file). Can you explain a little more your use-case and roughly what functionality you want to add? My main concerns/worries are impacting downstream use-cases performance-wise, i.e. HTTP requests and such. That's not to dissuade from improving things here, we just need to be aware that this is a "lower level" package in terms of the network stack and lots of other packages indirectly rely on this functionality.
from mbedtls.jl.
I was trying to use it with ClusterManager as a replacement for Sockets, no such luck as the state of serializer / deserializer is corrupt. Apparently ClusterManager is using lock(::IO)
to avoid concurrent writes https://github.com/JuliaLang/julia/blob/master/stdlib/Distributed/src/messages.jl#L170 which is not implemented and defaults to nothing.
from mbedtls.jl.
Ok, that sounds reasonable. I guess I wonder if we can implement what's necessary using the existing lock fields, or if something additional will be required. If you're willing to try things out, I'm happy to help review what ideas you have in a pull request. It might be helpful in your testing, in addition to your own use-case with ClusterManager, to run the HTTP.jl tests on your MbedTLS.jl changes, since it exercises a lot of the ssl.jl codepaths.
from mbedtls.jl.
datalock could work but for some reason it is checking for the number of times it was locked - https://github.com/JuliaLang/MbedTLS.jl/blob/master/src/ssl.jl#L594 - if this is removed no big changes are required.
from mbedtls.jl.
Yeah, that looks fishy; fine to remove.
from mbedtls.jl.
Related Issues (20)
- MbedTLS_jll started failing to load HOT 10
- Cannot create SSLConfig from a single pfx file HOT 1
- LoadError: InitError: could not load library "libmbedcrypto.so.5" HOT 1
- Delay after initial write
- No example or function to create an SSLConfig where you need a cert as a client
- TagBot trigger issue HOT 17
- Failure in multi-threaded application with GoogleCloud.jl and HTTP.jl HOT 8
- Init error when running relocatable app HOT 1
- MbedTLS 1.1.1 breaks S3.put_object() HOT 17
- MbedTLS 1.1.1 causing issues for authentication on Azure HOT 14
- Cannot find cert.pem in compiled applications HOT 4
- possible performance issue: tiny packets? HOT 3
- possible performance issue: mbedtls_gcm_update CPU utilization HOT 2
- MbedException or IOError? HOT 1
- `encrypt` method mentioned in the documentation does not actually work
- CPU use skyrockets and program bricks when connection closed by server
- MethodError on findfirst instead of "Certificate verification failed" HOT 2
- MbedTLS changed ABI HOT 1
- Feature Request: add support for TLS PSK (pre-shared key)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbedtls.jl.