Subject: Re: [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-12-02 23:15:28
#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: |
-----------------------------------+----------------------------------------
Comment(by tianhao.qiu@â¦):
Patch submitted.
The old design deletes the handler
(io_handler/handshake_handler/shutdown_handler) and openssl_operation
objects in the handler_impl() function. However pending handler_impl()
functions are not invoked when the io_service object is stopped, thus
causing the leak.
The patch addresses the problem by wrapping the handler and
openssl_operation objects in shared_ptrs.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3702#comment:1> 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:02 UTC