Re: [Boost-bugs] [Boost C++ Libraries] #6548: boost asio async_accept thread context

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6548: boost asio async_accept thread context
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-29 01:18:18


#6548: boost asio async_accept thread context
---------------------------------------+------------------------------------
  Reporter: aladjev.andrew@… | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.46.1 | Severity: Problem
Resolution: invalid | Keywords: c++ networking unix socket
---------------------------------------+------------------------------------
Changes (by chris_kohlhoff):

  * status: new => closed
  * resolution: => invalid

Comment:

 Your conclusion is not correct. There is only one acceptor object, and all
 of its completion handlers will be delivered through its associated
 io_service, which in this case is `io_1`. Which thread you start the
 `async_accept` operation from does not matter.

 The program does not stop because you have created `io_service::work`
 objects that you do not destroy. See
 [http://www.boost.org/doc/libs/1_49_0/doc/html/boost_asio/reference/io_service.html#boost_asio.reference.io_service.stopping_the_io_service_from_running_out_of_work
 here] for more details.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6548#comment:2>
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:09 UTC