Hi
I am getting "terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'" exception during some performance test..
I have attached complete backtrace.
I have added catch block while connecting and sending message, do i have to add try-catch block anywhere else still?
try{
client::connection_ptr con = client.get_connection(uri,ec);
con->set_open_handler(websocketpp::lib::bind(&call::on_open,this,websocketpp::lib::placeholders::_1));
con->set_fail_handler(websocketpp::lib::bind(&call::on_fail,this,websocketpp::lib::placeholders::_1));
con->set_close_handler(websocketpp::lib::bind(&call::on_close,this,websocketpp::lib::placeholders::_1));
con->set_message_handler(websocketpp::lib::bind(&call::on_message,this,websocketpp::lib::placeholders::_1,websocketpp::lib::placeholders::_2));
client.connect(con);
}
catch (...){
TRACE_MSG("ERROR: could not connect ");
return;
}
try{
client.send(m_hdl,msg,websocketpp::frame::opcode::text,ec);
}
catch(...){
TRACE_MSG("ERROR.. cannot send message");
return 0;
}
Regards
vasakris