diff --git a/src/internal/sio_client_impl.cpp b/src/internal/sio_client_impl.cpp index 2eab3ad5..c7568874 100644 --- a/src/internal/sio_client_impl.cpp +++ b/src/internal/sio_client_impl.cpp @@ -286,7 +286,7 @@ namespace sio if(ec || m_con.expired()) { if (ec != asio::error::operation_aborted) - LOG("ping exit,con is expired?"<expires_from_now(milliseconds(m_ping_interval), ec); - if(ec)LOG("ec:"<async_wait(std::bind(&client_impl::ping,this, std::placeholders::_1)); LOG("On handshake,sid:"<set_options(asio::ssl::context::default_workarounds | - asio::ssl::context::no_sslv2 | - asio::ssl::context::single_dh_use,ec); + asio::ssl::context::no_tlsv1 | + asio::ssl::context::no_tlsv1_1 | + asio::ssl::context::single_dh_use,ec); if(ec) { cerr<<"Init tls failed,reason:"<< ec.message()< #ifdef _WIN32 #define _WEBSOCKETPP_CPP11_THREAD_ -//#define _WEBSOCKETPP_CPP11_RANDOM_DEVICE_ +#define _WEBSOCKETPP_CPP11_RANDOM_DEVICE_ #define _WEBSOCKETPP_NO_CPP11_FUNCTIONAL_ #define INTIALIZER(__TYPE__) #else