reconnect field init

This commit is contained in:
melo.yao 2015-04-11 00:32:10 +08:00
parent 9da4979d7f
commit 933426051f

View File

@ -22,16 +22,19 @@ using boost::posix_time::milliseconds;
namespace sio
{
client_impl::client_impl() :
m_con_state(con_closed),
m_ping_interval(0),
m_ping_timeout(0),
m_network_thread()
m_con_state(con_closed),
m_ping_interval(0),
m_ping_timeout(0),
m_network_thread(),
m_reconn_attempts(0xFFFFFFFF),
m_reconn_delay(5000),
m_reconn_delay_max(25000)
{
using websocketpp::log::alevel;
#ifndef DEBUG
#ifndef DEBUG
m_client.clear_access_channels(alevel::all);
m_client.set_access_channels(alevel::connect|alevel::disconnect|alevel::app);
#endif
#endif
// Initialize the Asio transport policy
m_client.init_asio();