Re: [Boost-bugs] [Boost C++ Libraries] #4683: Infinite loop in async_connect to 0.0.0.0:0 (boost::asio)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4683: Infinite loop in async_connect to 0.0.0.0:0 (boost::asio)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-10-16 07:44:18


#4683: Infinite loop in async_connect to 0.0.0.0:0 (boost::asio)
-----------------------------------------------------+----------------------
  Reporter: Yury Podpruzhnikov <QWERTYura@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.44.0 | Severity: Problem
Resolution: worksforme | Keywords:
-----------------------------------------------------+----------------------
Changes (by chris_kohlhoff):

  * status: new => closed
  * resolution: => worksforme

Comment:

 I cannot reproduce this problem. This test program:

 {{{
 #include <boost/asio/ip/tcp.hpp>
 #include <iostream>

 using boost::asio::ip::tcp;

 void handle_connect(const boost::system::error_code& ec)
 {
   std::cout << "handle_connect(" << ec.message() << ")\n";
 }

 int main()
 {
   try
   {
     boost::asio::io_service io_service;
     tcp::socket sock(io_service);
     tcp::endpoint ep;
     std::cout << "Connecting to " << ep << "\n";
     sock.async_connect(ep, handle_connect);
     io_service.run();
   }
   catch (std::exception& e)
   {
     std::cout << "Exception: " << e.what() << "\n";
   }
 }
 }}}

 outputs the following for me on Windows XP:

 {{{
 Connecting to 0.0.0.0:0
 handle_connect(The requested address is not valid in its context)
 }}}


 Please supply a more complete test case and reopen the bug. Thanks.

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