27 Sep
2019
27 Sep
'19
1:30 a.m.
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)) -- regards