Re: [Boost-bugs] [Boost C++ Libraries] #2832: Asio sync IO functions need timeout parameters

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2832: Asio sync IO functions need timeout parameters
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-31 06:59:08


#2832: Asio sync IO functions need timeout parameters
-----------------------------------------------------+----------------------
  Reporter: Stephan Menzel <stephan.menzel@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: Boost 1.39.0 | Component: asio
   Version: Boost 1.38.0 | Severity: Problem
Resolution: wontfix | Keywords:
-----------------------------------------------------+----------------------

Comment (by stephanecharette@…):

 We're recently begun investigating re-writing the networking parts of our
 app using ASIO, but this is a blocker for us. We can get most of the
 select+read calls replaced very easily with ASIO synchronous calls, but
 we're stuck trying to figure out how to get the select timeouts
 implemented. Using asynchronous calls is more work than it would be for
 us to port our own networking code to the necessary platforms we need.
 After discussing in StackOverflow and getting pointed to this bug ticket,
 we decided to back out of the ASIO port we began last week. Synchronous
 network calls are great and simple to use especially since they map
 relatively well to legacy socket code, but the missing timeouts from
 legacy select() calls make ASIO unusable for porting existing apps with
 ease.

 At the very least, careful explanation of this in the docs or a better
 explanation (+ examples) of whatever we missed would probably be greatly
 appreciated. Otherwise, with the exception of this one tiny feature, we
 were impressed by how "clean" our C++ socket code felt once we'd converted
 parts of it to ASIO.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2832#comment:8>
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:05 UTC