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: 2013-07-11 18:31:21


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

Comment (by SlowRiot):

 There are definitely places where either simulating a sync timeout using
 async functions, or resorting to platform-specific socket timeouts, is
 absolutely necessary. This is true of both new and legacy code.
 Unfortunately, being the sole network library in Boost, asio has too great
 a level of exposure to get away with ignoring this under the excuse that
 it's a specifically async library; asio provides those sync functions, but
 intentionally hobbled versions, and this is irresponsible.

 Since it's possible to currently implement a native socket timeout with
 only a few lines of extra platform-specific code on top of asio, and many
 people are using this already, i can't really see any valid justification
 for not including that functionality in asio itself, when it would clearly
 serve the purpose that all boost is intended for - avoiding platform-
 specifics in common and advanced programming tasks, just like this one.

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