Digging on the Internet for several hours, I could not find the answer to my question.
My model is this: I have one common boost::asio::ssl::contextthat is used to create instances boost::asio::ssl::stream. Then, stream objects are transferred to different streams.
Is this model thread safe? Can the same boost::asio::ssl::contextbe used when building different SSL flow objects that will be used simultaneously?
Please read the description carefully before marking this problem as a duplicate. Thanks!
In my particular case, no object shares betweed streams. So, everything that is said about the safety of the Boost.Asio SSL stream does not affect my case. I access boost::asio::ssl::contextfrom one thread.
source
share