Code Monkey home page Code Monkey logo

Comments (7)

chris-morgan avatar chris-morgan commented on June 26, 2024

This will probably be necessary for implementing high-performance HTTP/2.0.

from rust-openssl.

sfackler avatar sfackler commented on June 26, 2024

Doing this properly will be a bit tricky since OpenSSL doesn't expose the ability to bump an SSL struct's refcount manually. I guess I could wrap it in an Arc but that's a bit sad.

from rust-openssl.

seanmonstar avatar seanmonstar commented on June 26, 2024

I also just ran into this. I clone the TcpStreams to make a Request and Response that a handler can deal with, and found I can't do so if I use SslStreams instead.

from rust-openssl.

reem avatar reem commented on June 26, 2024

Ya, in Hyper we have to wrap the SslStream in Arc<Mutex>, which is far from ideal. We could bug the OpenSSL guys to add that API.

from rust-openssl.

retep998 avatar retep998 commented on June 26, 2024

An Arc<Mutex> wrapper means that writing and reading cannot be done in parallel. It would really have to be implemented at the level of this library in order to allow for parallel reading and writing.

from rust-openssl.

aatxe avatar aatxe commented on June 26, 2024

👍 I need this enhancement for the reasons stated by @retep998.

from rust-openssl.

aatxe avatar aatxe commented on June 26, 2024

Thanks! I'm excited for this change to be up on crates.io.

from rust-openssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.