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: 2014-11-18 16:55:08


#8795: async_connect incorrectly reports success on failure
-------------------------------+----------------------------
  Reporter: benpope81@… | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.54.0 | Severity: Regression
Resolution: fixed | Keywords:
-------------------------------+----------------------------

Comment (by anonymous):

 With Boost 1.55 running on Windows 8.1 I was seeing a single false
 connection. On Boost 1.56 I see repeated false connections, over and over
 again.

 By "false connections" I mean that the connect handler for async_connect
 gets called right away (when the other end of the socket is not there),
 with error_code zero and where conn->socket.is_open() return true.
 Stepping into the boost code I see in win_iocp_io_service.ipp line 405
 result_ec is 10057 (WSAENOTCONN). The next line of code (ec =
 boost::system::error_code();) sets ec to zero.

 Does anyone else see this?

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