Boost logo

Boost Users :

From: Dmitrij V (dmxvlx_at_[hidden])
Date: 2019-09-27 01:30:41

Yes, you have no problem for now just by pure luck.
In the destructor of the context freeing all related to SSL resources.

How you can avoid the problems in future:

as an one of soltions, in your loop thread (if you have it, like me
for example):

1) io_.stop();
2) while (io_.poll()) {}
3) HERE your code to assign the context (perhaps you will need to
rehandshake alived sessions)
4) io_.restart();
5) acceptor_.async_accept(...);

PS: In my past project I had very likely approach - restart server
without stopping the process app. I had reject all my beginnings and
forced clients to reconnect by losed the connections (there are many
bytes would needs to store in shared memory (related to session data))


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at