test_obj.get_ssl_flag() = true; //SSL mode
test_obj.get_ssl_handshake_time_out_flag() = false; //handshake time out
test_obj.get_ssl_handshake_timer_flag() = false; //timer not set
- test_obj.get_ssl_handshake_time_out() = 1; //timer set second
+ test_obj.get_ssl_handshake_time_out() = 3; //timer set second
test_obj.handle_ssl_handshake_timer_call_chk = false;
test_obj.get_tcp_client_ssl_socket().handshake_call_check = false;
test_obj.get_tcp_client_ssl_socket().handshake_res = false;
std::cout << "1 sec" << std::endl;
BOOST_CHECK( test_obj.handle_ssl_handshake_timer_call_chk == false );
// after 2 second
- sleep(1);
+ sleep(2);
std::cout << "2 sec" << std::endl;
BOOST_CHECK( test_obj.handle_ssl_handshake_timer_call_chk == false );
// after 3 second
sleep(1);
std::cout << "3 sec" << std::endl;
- BOOST_CHECK( test_obj.handle_ssl_handshake_timer_call_chk == false );
+ BOOST_CHECK( test_obj.handle_ssl_handshake_timer_call_chk == true );
// after 4 second
sleep(1);
std::cout << "4 sec" << std::endl;
- BOOST_CHECK( test_obj.handle_ssl_handshake_timer_call_chk == false );
+ BOOST_CHECK( test_obj.handle_ssl_handshake_timer_call_chk == true );
// after 5 second
sleep(1);
std::cout << "5 sec" << std::endl;
- BOOST_CHECK( test_obj.handle_ssl_handshake_timer_call_chk == false );
+ BOOST_CHECK( test_obj.handle_ssl_handshake_timer_call_chk == true );
timer_thread.join();