[Boost-bugs] [Boost C++ Libraries] #10508: Hang occurs if tcp::socket.connect(endpt, errorcode) is called with reserved IP address

Subject: [Boost-bugs] [Boost C++ Libraries] #10508: Hang occurs if tcp::socket.connect(endpt, errorcode) is called with reserved IP address
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-16 16:16:59


#10508: Hang occurs if tcp::socket.connect(endpt, errorcode) is called with
reserved IP address
-------------------------------------+----------------------------
 Reporter: Ron Hansen <thak@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: asio tcp socket connect |
-------------------------------------+----------------------------
 boost::asio::ip::tcp::socket.connect( EndPt, ec) hangs in
 detail/impl/socket_opps.ipp:472 on the call

 template <typename SockLenType>
 inline int call_connect(SockLenType msghdr::*,
     socket_type s, const socket_addr_type* addr, std::size_t addrlen)
 {
   return ::connect(s, addr, (SockLenType)addrlen); <== HANGS
 }

 if the IP address is Valid but reserved. 127.0.0.1 & any established
 private network subnet address work fine with either a connection or an
 errorcode return specifying the connection was refused.

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