[Boost-bugs] [Boost C++ Libraries] #7897: Add timeout parameter to all Boost::ASIO socket operations

Subject: [Boost-bugs] [Boost C++ Libraries] #7897: Add timeout parameter to all Boost::ASIO socket operations
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-16 00:48:36


#7897: Add timeout parameter to all Boost::ASIO socket operations
-------------------------------------+--------------------------------------
 Reporter: RobertGBryan@… | Owner: chris_kohlhoff
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost Development Trunk | Severity: Not Applicable
 Keywords: |
-------------------------------------+--------------------------------------
 Right now the user has to implement some code in order to implement
 timeouts to be used with ASIO.

 A better way is if ASIO could handle timeouts internally.

 For example, take the method async_connect. A new 4-byte integer
 parameter could be added to the function signature that when greater than
 zero, would specify the number of milliseconds to wait before timing out.
 If the value specified was set to zero, then the code would use whatever
 default timeout that the raw socket was set to use. If it was set to less
 than zero, then it would set the timeout to the maximum value or not use a
 timeout.

 A timeout parameter should be added to any ASIO method call that uses or
 may use a socket read, write, or connection function. If a method is
 buried that uses a socket connection, then the class it is in should
 provide a way to specify the timeout value.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7897>
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:11 UTC