Ticket #3702 (closed Bugs: fixed)
asio & ssl - leaking io_handlers after boost::asio::io_service object is stopped and destroyed
|Reported by:||tianhao.qiu@…||Owned by:||chris_kohlhoff|
The way boost::asio::ssl::detail::openssl_stream_service is implemented requires that function handler_impl() has to be called before io_handler objects can be deleted. However when the io_service object is stopped and later destroyed, the handlers for those pending SSL operations will never be called, thus causing the leak.
Since I am binding shared_ptr<ssl_session>s into my SSL handlers, this leak will also keep alive my SSL session objects.