[asio] boost::asio::async_connect reports success on failure
Hi all, I've found a regression between 1.53 to 1.54; if you compile boost/libs/asio/example/cpp11/chat/chat_client.cpp and point it at a host and port that doesn't exist or refuses the connection, instead of coming back with an error, such as host not found or connection refused, it reports success (on the conversion to bool). (you might want to embellish the example with a std::cout << error_code.message() << std::endl;) This appears to be the case across Linux, Darwin, iOS and Android :( synchronous connect seems to work correctly (i.e., echo/blocking_tcp_echo_client.cpp) Ben
On 03/07/13 17:12, Ben Pope wrote:
Hi all,
I've found a regression between 1.53 to 1.54; if you compile boost/libs/asio/example/cpp11/chat/chat_client.cpp and point it at a host and port that doesn't exist or refuses the connection, instead of coming back with an error, such as host not found or connection refused, it reports success (on the conversion to bool). (you might want to embellish the example with a std::cout << error_code.message() << std::endl;)
On 08/07/13 13:00, Ben Pope wrote:
On 03/07/13 17:12, Ben Pope wrote:
Hi all,
I've found a regression between 1.53 to 1.54; if you compile boost/libs/asio/example/cpp11/chat/chat_client.cpp and point it at a host and port that doesn't exist or refuses the connection, instead of coming back with an error, such as host not found or connection refused, it reports success (on the conversion to bool). (you might want to embellish the example with a std::cout << error_code.message() << std::endl;)
Ping. Christopher Kohlhoff doesn't seem entirely MIA, he has made commits to his urdl library about 3 weeks ago, but no response on this issue. What's the best way of a determining the correct fix and getting it in before 1.55? Ben
Ben Pope wrote:
Christopher Kohlhoff doesn't seem entirely MIA, he has made commits to his urdl library about 3 weeks ago, but no response on this issue.
What's the best way of a determining the correct fix and getting it in before 1.55?
Ben
Hi Ben, I'm not really an asio user, but you might have better luck trying this on the asio mailing list: <http://sourceforge.net/p/asio/mailman/?source=navbar
Good luck, Nate
On 13/09/13 02:09, Nathan Crookston wrote:
Ben Pope wrote:
Christopher Kohlhoff doesn't seem entirely MIA, he has made commits to his urdl library about 3 weeks ago, but no response on this issue.
What's the best way of a determining the correct fix and getting it in before 1.55?
Ben
Hi Ben,
I'm not really an asio user, but you might have better luck trying this on the asio mailing list: <http://sourceforge.net/p/asio/mailman/?source=navbar
I posted a message on that list as well as here. http://sourceforge.net/p/asio/mailman/message/31143877/ I think the project moved to github: https://github.com/chriskohlhoff/asio So I posted a bug there: https://github.com/chriskohlhoff/asio/issues/6 As well as at Boost: https://svn.boost.org/trac/boost/ticket/8795 Ben
participants (2)
-
Ben Pope
-
Nathan Crookston