[Boost-bugs] [Boost C++ Libraries] #3702: asio & ssl - leaking io_handlers after boost::asio::io_service object is stopped and destroyed

Subject: [Boost-bugs] [Boost C++ Libraries] #3702: asio & ssl - leaking io_handlers after boost::asio::io_service object is stopped and destroyed
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-30 21:45:19


#3702: asio & ssl - leaking io_handlers after boost::asio::io_service object is
stopped and destroyed
-----------------------------------+----------------------------------------
 Reporter: tianhao.qiu@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: asio
  Version: Boost 1.41.0 | Severity: Problem
 Keywords: |
-----------------------------------+----------------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3702>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC