socket.io-client-cpp
socket.io-client-cpp copied to clipboard
boost error in windowsXP
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 :(
Hi, is this issue still there?