Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3900: Request for support of "release" member function or assign without ownership transfer to asio socket
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-18 03:47:01
#3900: Request for support of "release" member function or assign without
ownership transfer to asio socket
---------------------------------+------------------------------------------
Reporter: artyomtnk@⦠| Owner: chris_kohlhoff
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.42.0 | Severity: Problem
Keywords: |
---------------------------------+------------------------------------------
Comment(by Maxim Yanchenko <Maxim.Yanchenko@â¦>):
In my particular case it's a third-party library that exposes its internal
socket.
I use Boost.Asio to read from this socket to a null buffer to determine if
it's time to ask this library to read from the socket.
The problem I have is double closing of the socket during shutdown - both
library and asio try to close the socket.
Currently I just dup the socket from the library before giving it to asio
- but it's a workaround, I'd like to have something more straightforward,
like a parameter for attach() like "don't close in dtor".
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3900#comment:4> 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