socket.io-client-cpp icon indicating copy to clipboard operation
socket.io-client-cpp copied to clipboard

boost error in windowsXP

Open dummy0stud opened this issue 10 years ago • 1 comments

When client tries to connect to server and the ip address does not exist websocketpp ends up calling: websocketpp::endpoint::handle_connect_timeout(...)

and then boost calls: boost:asio::basic_socket::cancel();

and this function throws an error: boost::asio::detail::throw_error(ec, "cancel");

#if defined(BOOST_ASIO_MSVC) && (BOOST_ASIO_MSVC >= 1400) \
  && (!defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600) \
  && !defined(BOOST_ASIO_ENABLE_CANCELIO)
  __declspec(deprecated("By default, this function always fails with "
        "operation_not_supported when used on Windows XP, Windows Server 2003, "
        "or earlier. Consult documentation for details."))
#endif
  void cancel()
  {
    boost::system::error_code ec;
    this->get_service().cancel(this->get_implementation(), ec);
    boost::asio::detail::throw_error(ec, "cancel");
}  

And this ends up crashing the process on windows xp

Can you please help me with some workaround for this? Because I need it working on windowsXP too :(

dummy0stud avatar Sep 22 '15 10:09 dummy0stud

Hi, is this issue still there?

jmigual avatar Feb 25 '22 13:02 jmigual