Digging around the internet for a few hours I could not find an answer to my question.
My model is this: I have one shared boost::asio::ssl::context
that is being used to create instances of boost::asio::ssl::stream
. Then stream objects are passed along to different threads.
Is this model thread safe? Can same boost::asio::ssl::context
be used in construction of different SSL stream objects that will be concurrently used?
Please, before marking this issue as a duplicate, consider reading description carefully. Thank you!
I my specific case, no objects are shared betweed threads. So anything said in Boost.Asio SSL thread safety thread safety does not affect my case. I access boost::asio::ssl::context
from a single thread.