[Boost-bugs] [Boost C++ Libraries] #8795: async_connect oncorrectly reports success on failure

Subject: [Boost-bugs] [Boost C++ Libraries] #8795: async_connect oncorrectly reports success on failure
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-08 04:59:35


#8795: async_connect oncorrectly reports success on failure
------------------------------+----------------------------
 Reporter: benpope81@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.54.0 | Severity: Regression
 Keywords: |
------------------------------+----------------------------
 I've found a regression between 1.53 to 1.54; if you compile
 boost/libs/asio/example/cpp11/chat/chat_client.cpp
 and point it at a host and port that doesn't exist or refuses the
 connection, instead of coming back with an error, such as host not found
 or connection refused, it reports success (on the conversion to bool).
 (you might want to embellish the example with a std::cout <<
 error_code.message() << std::endl;)

 This appears to be the case across Linux, Darwin, iOS and Android.

 synchronous connect seems to work correctly (i.e.,
 echo/blocking_tcp_echo_client.cpp)

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