[Boost-bugs] [Boost C++ Libraries] #7392: boost::asio::ip::tcp::socket::is_open returns true even if socket is unusable

Subject: [Boost-bugs] [Boost C++ Libraries] #7392: boost::asio::ip::tcp::socket::is_open returns true even if socket is unusable
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-09-19 10:17:35


#7392: boost::asio::ip::tcp::socket::is_open returns true even if socket is
unusable
-----------------------------------------------------+----------------------
 Reporter: Valentin Shtronda <valiko.ua@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: |
-----------------------------------------------------+----------------------
 socket.connect() failed with error code 10060:

 "A connection attempt failed because the connected party did not properly
 respond after a period of time, or established connection failed because
 connected host has failed to respond".

 Subsequent call to socket::is_open() method returns true (which is bad).
 Subsequent call to boost::asio::write(socket, ...) returns error code
 10057 ("A request to send or receive data was disallowed because the
 socket is not connected and (w
 hen sending on a datagram socket using a sendto call) no address was
 supplied") (which is OK).

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