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

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8795: async_connect incorrectly reports success on failure
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-10 13:33:10


#8795: async_connect incorrectly 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
Resolution: | Keywords:
-------------------------------+----------------------------

Comment (by agazso@…):

 For me this fix worked

 if (ec == asio::error::connection_refused) return true;

 at line 524 of boost/asio/detail/impl/socket_ops.ipp

 It seems that when {{{connect}}} returns {{{ECONNREFUSED}}} then
 {{{getsockopt}}} returns no error.

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