//! @return result.flag true is parameter is noproblem.
//! @return result.flag false is paramter is problem.
virtual check_message_result add_parameter( const std::vector<std::string>& args ) = 0;
-
+ //! get option info
+ //! @param[out] module parameter string
+ virtual void get_option_info( std::string& option ) = 0;
//! TCP/IP scheduled function registation.
//! @param[in] schedule module TCP/IP scheduled function object type
virtual void register_schedule( tcp_schedule_func_type inschedule ) = 0;
formatter % static_cast<void*>(ip_replication_area_begin)
% ip_replication_area_size % virtual_service_endpoint.address().to_string()
% virtual_service_endpoint.port();
- putLogDebug(600201, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600200, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600202, "out_function : Constructor ip_replication_data_processor::"
+ putLogDebug(600201, "out_function : Constructor ip_replication_data_processor::"
"ip_replication_data_processor("
"char* ip_replication_area_begin, int ip_replication_area_size, "
"const boost::asio::ip::tcp::endpoint& virtual_service_endpoint, "
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600203, "function : ip_replication_data_processor::"
+ putLogDebug(600202, "function : ip_replication_data_processor::"
"ip_replication_data_processor() : Replication area is null.", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600204, "function : ip_replication_data_processor::"
+ putLogDebug(600203, "function : ip_replication_data_processor::"
"ip_replication_data_processor() : Over replication area.",
__FILE__, __LINE__);
- putLogDebug(600205, "out_function : Constructor ip_replication_data_processor::"
+ putLogDebug(600204, "out_function : Constructor ip_replication_data_processor::"
"ip_replication_data_processor(int maxlist, "
"char* ip_replication_area_begin, int ip_replication_area_size, "
"const boost::asio::ip::tcp::endpoint& virtual_service_endpoint, "
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600206, "function : ip_replication_data_processor::"
+ putLogDebug(600205, "function : ip_replication_data_processor::"
"ip_replication_data_processor() : Replication area is full.",
__FILE__, __LINE__);
}
"size = %d, offset = %d).");
formatter % pick->virtualserver_ip % pick->virtualserver_port
% pick->size % pick->offset;
- putLogDebug(600207, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600206, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
}
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600208, "function : ip_replication_data_processor::"
+ putLogDebug(600207, "function : ip_replication_data_processor::"
"ip_replication_data_processor() : Replication area is full.",
__FILE__, __LINE__);
}
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600209, "out_function : Constructor ip_replication_data_processor::"
+ putLogDebug(600208, "out_function : Constructor ip_replication_data_processor::"
"ip_replication_data_processor("
"char* ip_replication_area_begin, int ip_replication_area_size, "
"const boost::asio::ip::tcp::endpoint& virtual_service_endpoint, "
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600210, "in/out_function : Destructor ip_replication_data_processor::"
+ putLogDebug(600209, "in/out_function : Destructor ip_replication_data_processor::"
"~ip_replication_data_processor().", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"data.ip_hash = %d, data.last_time = %lu, data.rs_endpoint = [%s]:%d.");
formatter % data.op_code % data.ip_hash % data.last_time % data.rs_endpoint.address().to_string()
% data.rs_endpoint.port();
- putLogDebug(600211, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600210, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600212, "out_function : void ip_replication_data_processor::"
+ putLogDebug(600211, "out_function : void ip_replication_data_processor::"
"put_into_temp_list(const ip_replication_temp_data& data).", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600213, "in_function : void ip_replication_data_processor::"
+ putLogDebug(600212, "in_function : void ip_replication_data_processor::"
"write_replicaion_area().", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600214, "out_function : void ip_replication_data_processor::"
+ putLogDebug(600213, "out_function : void ip_replication_data_processor::"
"write_replicaion_area().", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"realserver_prot = %d, last_time = %d.");
formatter % replication_area[temp_data.ip_hash].realserver_ip % replication_area[temp_data.ip_hash].realserver_port %
replication_area[temp_data.ip_hash].last_time;
- putLogDebug(600215, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600214, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
boost::format formatter("function : void ip_replication_data_processor::"
"write_replicaion_area() : 'U' : last_time = %d.");
formatter % replication_area[temp_data.ip_hash].last_time;
- putLogDebug(600216, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600215, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600217, "out_function : void ip_replication_data_processor::"
+ putLogDebug(600216, "out_function : void ip_replication_data_processor::"
"write_replicaion_area().", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"ip_replication_data_processor::"
"get_replication_area() : return_value = &(%d).");
formatter % static_cast<void*>(replication_area);
- putLogDebug(600218, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600217, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600219, "in_function : void ip_replication_data_processor::"
+ putLogDebug(600218, "in_function : void ip_replication_data_processor::"
"register_replication_area_lock(boost::function<void(void)> intable_lock).",
__FILE__, __LINE__);
}
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600220, "out_function : void ip_replication_data_processor::"
+ putLogDebug(600219, "out_function : void ip_replication_data_processor::"
"register_replication_area_lock(boost::function<void(void)> intable_lock).",
__FILE__, __LINE__);
}
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600221, "in_function : void ip_replication_data_processor::"
+ putLogDebug(600220, "in_function : void ip_replication_data_processor::"
"register_replication_area_unlock(boost::function<void(void)> intable_unlock).",
__FILE__, __LINE__);
}
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600222, "out_function : void ip_replication_data_processor::"
+ putLogDebug(600221, "out_function : void ip_replication_data_processor::"
"register_replication_area_unlock(boost::function<void(void)> intable_unlock).",
__FILE__, __LINE__);
}
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600223, "in_function : void ip_replication_data_processor::"
+ putLogDebug(600222, "in_function : void ip_replication_data_processor::"
"get_from_temp_list(ip_replication_temp_data& data).", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"data.last_time = %lu, data.rs_endpoint = [%s]:%d.");
formatter % ret % data.op_code % data.ip_hash % data.last_time %
data.rs_endpoint.address().to_string() % data.rs_endpoint.port();
- putLogDebug(600224, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600223, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"logger_func_type inputLogInfo, logger_func_type inputLogDebug) : "
"timeout = %d, replication_data_processor = &(%d).");
formatter % timeout % static_cast<void*>(replication_data_processor);
- putLogDebug(600186, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600185, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600187, "out_function : Constructor ip_session_data_processor::"
+ putLogDebug(600186, "out_function : Constructor ip_session_data_processor::"
"ip_session_data_processor(int timeout, "
"ip_replication_data_processor* replication_data_processor, "
"getloglevel_func_type ingetloglevel, logger_func_type inputLogFatal, "
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600188, "out_function : Constructor ip_session_data_processor::"
+ putLogDebug(600187, "out_function : Constructor ip_session_data_processor::"
"ip_session_data_processor(int timeout, "
"ip_replication_data_processor* replication_data_processor, "
"getloglevel_func_type ingetloglevel, logger_func_type inputLogFatal, "
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600189, "in/out_function : Destructor ip_session_data_processor::"
+ putLogDebug(600188, "in/out_function : Destructor ip_session_data_processor::"
"~ip_session_data_processor().", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"boost::asio::ip::tcp::endpoint& endpoint) : "
"ip_hash = %d.");
formatter % ip_hash;
- putLogDebug(600190, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600189, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
boost::format formatter("out_function : int ip_session_data_processor::"
"get_endpoint_from_ip_data(int ip_hash, "
"boost::asio::ip::tcp::endpoint& endpoint) : return_value = 1.");
- putLogDebug(600191, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600190, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
return 1;
"get_endpoint_from_ip_data(int ip_hash, "
"boost::asio::ip::tcp::endpoint& endpoint) : return_value = %d.");
formatter % ret;
- putLogDebug(600192, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600191, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"const boost::asio::ip::tcp::endpoint& endpoint, "
"time_t now_time) : ip_hash = %d, now_time = %d.");
formatter % ip_hash % now_time;
- putLogDebug(600193, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600192, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"write_session_data(int ip_hash,"
"const boost::asio::ip::tcp::endpoint& endpoint, "
"time_t now_time) : return_value = 1.");
- putLogDebug(600194, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600193, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
return 1;
"write_session_data() : put_into_temp_list() "
"--add item ip_hash = %d -- end.");
formatter % ip_hash;
- putLogDebug(600195, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600194, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
}
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600196, "out_function : int ip_session_data_processor::"
+ putLogDebug(600195, "out_function : int ip_session_data_processor::"
"write_session_data(int hash, "
"const boost::asio::ip::tcp::endpoint& endpoint, time_t now_time) : "
"return_value = -1.", __FILE__, __LINE__);
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600197, "out_function : int ip_session_data_processor::"
+ putLogDebug(600196, "out_function : int ip_session_data_processor::"
"write_ip_data(const std::string& ip, "
"const boost::asio::ip::tcp::endpoint& endpoint, time_t now_time) : "
"return_value = 0.", __FILE__, __LINE__);
"read_session_data_from_replication_area(ip_replication_data* replication_area) : "
"replication_area = &(%d).");
formatter % static_cast<void*>(replication_area);
- putLogDebug(600198, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600197, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600199, "out_function : int ip_session_data_processor::"
+ putLogDebug(600198, "out_function : int ip_session_data_processor::"
"read_session_data_from_replication_area("
"ip_replication_data* replication_area) : return_value = -1.", __FILE__, __LINE__);
}
"read_session_data_from_replication_area(ip_replication_data* replication_area) : "
"return_value = %d.");
formatter % ret;
- putLogDebug(600200, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600199, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(300031, "in_function : void protocol_module_ip::get_option_info("
+ putLogDebug(600031, "in_function : void protocol_module_ip::get_option_info("
"std::string& option).", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
boost::format formatter("out_function : void protocol_module_ip::get_option_info("
"std::string& option) : option = %s.");
formatter % option;
- putLogDebug(300039, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600032, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
}
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600031, "in_function : void protocol_module_ip::register_schedule("
+ putLogDebug(600033, "in_function : void protocol_module_ip::register_schedule("
"tcp_schedule_func_type inschedule).", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600032, "out_function : void protocol_module_ip::register_schedule("
+ putLogDebug(600034, "out_function : void protocol_module_ip::register_schedule("
"tcp_schedule_func_type inschedule).", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(600033, "in/out_function : void protocol_module_ip::register_schedule("
+ putLogDebug(600035, "in/out_function : void protocol_module_ip::register_schedule("
"udp_schedule_func_type inschedule).", __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"const boost::asio::ip::udp::endpoint& client_endpoint_udp) : "
"up_thread_id = %d, down_thread_id = %d.");
formatter % up_thread_id % down_thread_id;
- putLogDebug(600034, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600036, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(p_up.get()) % sizeof(session_thread_data_ip);
- putLogDebug(600035, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600037, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
% p_up->ip_hash;
- putLogDebug(600036, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600038, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(p_down.get()) % sizeof(session_thread_data_ip);
- putLogDebug(600037, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600039, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
% p_down->current_message_rest_size
% p_down->data_state
% p_down->ip_hash;
- putLogDebug(600038, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600040, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"const boost::asio::ip::udp::endpoint& client_endpoint_udp) : return_value = %d. "
"thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600039, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600041, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"const boost::thread::id down_thread_id) : "
"up_thread_id = %d, down_thread_id = %d.");
formatter % up_thread_id % down_thread_id;
- putLogDebug(600040, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600042, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
EVENT_TAG status = STOP;
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(p_up->data_buffer);
- putLogDebug(600041, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600043, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(p_up.get());
- putLogDebug(600042, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600044, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(p_up->data_buffer);
- putLogDebug(600043, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600045, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(p_down.get());
- putLogDebug(600044, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600046, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"handle_session_finalize(const boost::thread::id up_thread_id, "
"const boost::thread::id down_thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600045, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600047, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return status;
boost::format formatter("in_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_accept(const boost::thread::id thread_id) : thread_id = %d.");
formatter % thread_id;
- putLogDebug(600046, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600048, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_accept(const boost::thread::id thread_id) : ACCEPT_END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600047, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600049, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_accept() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600048, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600050, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_accept(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600049, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600051, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : thread_id = %d, recvbuffer = %s, recvlen = %d.");
formatter % thread_id % buffer % recvlen;
- putLogDebug(600050, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600052, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(600051, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600053, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return status;
"handle_client_recv() : call find_http_header_all : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600052, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600054, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_recv() : call check_http_method_and_version : "
"return_value = %d. thread id : %d.");
formatter % check_ret % boost::this_thread::get_id();
- putLogDebug(600053, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600055, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_recv() : call find_http_header_content_length : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600054, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600056, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_client_recv() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600055, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600057, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600056, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600058, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::asio::ip::tcp::endpoint& rs_endpoint) : "
"thread_id = %d, rs_endpoint = [%s]:%d.");
formatter % thread_id % rs_endpoint.address().to_string() % rs_endpoint.port();
- putLogDebug(600057, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600059, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::asio::ip::tcp::endpoint& rs_endpoint)"
" : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(600058, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600060, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
"protocol_module_ip::handle_realserver_select() : "
"get_endpoint_from_session_data() end. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600059, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600061, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"handle_realserver_select() : call schedule_tcp : "
"rs_endpoint = [%s]:%d. thread id : %d.");
formatter % rs_endpoint.address().to_string() % rs_endpoint.port() % boost::this_thread::get_id();
- putLogDebug(600060, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600062, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"protocol_module_ip::handle_realserver_select() : "
"write_session_data() end. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600061, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600063, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"handle_realserver_select() : call schedule_tcp : "
"rs_endpoint = [%s]:%d. thread id : %d.");
formatter % rs_endpoint.address().to_string() % rs_endpoint.port() % boost::this_thread::get_id();
- putLogDebug(600062, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600064, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"protocol_module_ip::handle_realserver_select() : "
"write_session_data() end. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600063, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600065, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
session_data_ptr = session_thread_it->second;
- //set end flag on
- session_data_ptr->end_flag = END_FLAG_ON;
-
- /*-------- DEBUG LOG --------*/
- if (unlikely(LOG_LV_DEBUG == getloglevel()))
- {
- boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
- "handle_realserver_connection_fail(const boost::thread::id thread_id, "
- "const boost::asio::ip::tcp::endpoint& rs_endpoint) : END_FLAG_ON. "
- "thread_id = %d, rs_endpoint = [%s]:%d.");
- formatter % thread_id % rs_endpoint.address().to_string() % rs_endpoint.port();
- putLogDebug(600075, formatter.str(), __FILE__, __LINE__ );
- }
- /*------DEBUG LOG END------*/
-
//set return status
status = CLIENT_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_realserver_connection_fail() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600076, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600075, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_connection_fail(const boost::thread::id thread_id, "
"const boost::asio::ip::tcp::endpoint& rs_endpoint) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600077, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600076, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("in_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_realserver_send(const boost::thread::id thread_id) : thread_id = %d.");
formatter % thread_id;
- putLogDebug(600078, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600077, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_send() : call find_http_header_all : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600079, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600078, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_send() : call check_http_method_and_version : "
"return_value = %d. thread id : %d.");
formatter % check_ret % boost::this_thread::get_id();
- putLogDebug(600080, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600079, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_send() : call find_http_header_content_length : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600081, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600080, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_realserver_send() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600082, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600081, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_realserver_send(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600083, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600082, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::asio::ip::tcp::endpoint& sorry_endpoint) : "
"thread_id = %d, sorry_endpoint = [%s]:%d.");
formatter % thread_id % sorry_endpoint.address().to_string() % sorry_endpoint.port();
- putLogDebug(600084, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600083, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorryserver_select() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600085, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600084, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::asio::ip::tcp::endpoint& sorry_endpoint)"
" : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600086, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600085, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::array<char, MAX_BUFFER_SIZE>& sendbuffer, size_t& datalen) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(600087, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600086, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_connect() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % x_forwarded_for_context.size() % datadump;
- putLogDebug(600088, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600087, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_connect() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % x_forwarded_for_context.size() % datadump;
- putLogDebug(600089, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600088, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorryserver_connect() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600090, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600089, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::array<char,MAX_BUFFER_SIZE>& sendbuffer, "
"size_t& datalen) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600091, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600090, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::asio::ip::tcp::endpoint& sorry_endpoint) : "
"thread_id = %d, sorry_endpoint = [%s]:%d.");
formatter % thread_id % sorry_endpoint.address().to_string() % sorry_endpoint.port();
- putLogDebug(600092, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600091, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorryserver_connection_fail() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600093, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600092, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_connection_fail(const boost::thread::id thread_id, "
"const boost::asio::ip::tcp::endpoint& sorry_endpoint) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600094, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600093, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("in_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorryserver_send(const boost::thread::id thread_id) : thread_id = %d.");
formatter % thread_id;
- putLogDebug(600095, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600094, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_send() : call find_http_header_all : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600096, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600095, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_send() : call check_http_method_and_version : "
"return_value = %d. thread id : %d.");
formatter % check_ret % boost::this_thread::get_id();
- putLogDebug(600097, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600096, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_send() : call find_http_header_content_length : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600098, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600097, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorryserver_send() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600099, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600098, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorryserver_send(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600100, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600099, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const size_t& recvlen) : "
"return_value = %d. thread id : %d.");
formatter % STOP % boost::this_thread::get_id();
- putLogDebug(600101, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600100, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return STOP;
"const size_t recvlen) : thread_id = %d, rs_endpoint = [%s]:%d, recvbuffer = %s, recvlen = %d.");
formatter % thread_id % rs_endpoint.address().to_string() % rs_endpoint.port()
% buffer % recvlen;
- putLogDebug(600102, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600101, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(600103, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600102, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const size_t recvlen) : SWITCH_FLAG_OFF. "
"thread_id = %d, rs_endpoint = [%s]:%d.");
formatter % thread_id % rs_endpoint.address().to_string() % rs_endpoint.port();
- putLogDebug(600104, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600103, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_recv() : call find_http_header_all : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600105, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600104, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_recv() : call check_http_version_and_status_code : "
"return_value = %d. thread id : %d.");
formatter % check_ret % boost::this_thread::get_id();
- putLogDebug(600106, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600105, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_recv() : call find_http_header_content_length : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600107, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600106, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_realserver_recv() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600108, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600107, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(600109, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600108, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const size_t recvlen) : thread_id = %d, sorry_endpoint = [%s]:%d, recvbuffer = %s, recvlen = %d.");
formatter % thread_id % sorry_endpoint.address().to_string() % sorry_endpoint.port()
% buffer % recvlen;
- putLogDebug(600110, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600109, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(600111, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600110, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const size_t recvlen) : SWITCH_FLAG_OFF. "
"thread_id = %d, rs_endpoint = [%s]:%d.");
formatter % thread_id % sorry_endpoint.address().to_string() % sorry_endpoint.port();
- putLogDebug(600112, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600111, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : call find_http_header_all : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600113, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600112, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : call check_http_version_and_status_code : "
"return_value = %d. thread id : %d.");
formatter % check_ret % boost::this_thread::get_id();
- putLogDebug(600114, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600113, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : call find_http_header_content_length : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600115, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600114, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorryserver_recv() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600116, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600115, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(600117, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600116, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_response_send_inform(const boost::thread::id thread_id) : "
"return_value = %d. thread id : %d.");
formatter % STOP % boost::this_thread::get_id();
- putLogDebug(600118, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600117, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::array<char, MAX_BUFFER_SIZE>& sendbuffer, size_t& datalen) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(600119, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600118, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_connection_check() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % session_data_ptr->data_offset % send_possible_size % datadump;
- putLogDebug(600120, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600119, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_connection_check() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % send_possible_size % datadump;
- putLogDebug(600121, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600120, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_client_connection_check() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600122, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600121, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_connection_check(const boost::thread::id thread_id, "
"boost::array<char, MAX_BUFFER_SIZE>& sendbuffer, size_t& datalen) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600123, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600122, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const size_t& datalen) : "
"return_value = %d. thread id : %d.");
formatter % STOP % boost::this_thread::get_id();
- putLogDebug(600124, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600123, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return STOP;
boost::format formatter("in_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_client_send(const boost::thread::id thread_id) : thread_id = %d.");
formatter % thread_id;
- putLogDebug(600125, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600124, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_send() : call find_http_header_all : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600126, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600125, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_send() : call check_http_version_and_status_code : "
"return_value = %d. thread id : %d.");
formatter % check_ret % boost::this_thread::get_id();
- putLogDebug(600127, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600126, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_send() : call find_http_header_content_length : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600128, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600127, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_client_send() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600129, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600128, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_client_send(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600130, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600129, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("in/out_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_client_disconnect(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(600131, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600130, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
boost::format formatter("in_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_enable(const boost::thread::id thread_id) : thread_id = %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600132, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600131, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_enable(const boost::thread::id thread_id) : SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600133, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600132, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_enable(const boost::thread::id thread_id) : SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600134, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600133, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_enable(const boost::thread::id thread_id) : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600135, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600134, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_enable(const boost::thread::id thread_id) : SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600136, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600135, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_enable(const boost::thread::id thread_id) : SORRY_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600137, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600136, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_enable() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600138, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600137, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_enable(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600139, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600138, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("in_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_disable(const boost::thread::id thread_id) : thread_id = %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600140, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600139, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_disable(const boost::thread::id thread_id) : SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600141, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600140, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_disable(const boost::thread::id thread_id) : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600142, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600141, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_disable(const boost::thread::id thread_id) : SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600143, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600142, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_disable(const boost::thread::id thread_id) : SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600144, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600143, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_disable(const boost::thread::id thread_id) : SORRY_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600145, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600144, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_disable() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600146, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600145, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorry_disable(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600147, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600146, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_disconnect(const boost::thread::id thread_id, const boost::asio::ip::tcp::endpoint& rs_endpoint) : "
"thread_id = %d, rs_endpoint = [%s]:%d.");
formatter % thread_id % rs_endpoint.address().to_string() % rs_endpoint.port();
- putLogDebug(600148, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600147, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_realserver_disconnect(const boost::thread::id thread_id, const boost::asio::ip::tcp::endpoint &" "rs_endpoint) : SWITCH_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600149, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600148, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_realserver_disconnect() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600150, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600149, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_disconnect(const boost::thread::id thread_id, "
"const boost::asio::ip::tcp::endpoint& rs_endpoint) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600151, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600150, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_disconnect(const boost::thread::id thread_id, const boost::asio::ip::tcp::endpoint& sorry_endpoint) : "
"thread_id = %d, sorry_endpoint = [%s]:%d.");
formatter % thread_id % sorry_endpoint.address().to_string() % sorry_endpoint.port();
- putLogDebug(600152, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600151, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorryserver_disconnect(const boost::thread::id thread_id, const boost::asio::ip::tcp::endpoint &" "sorry_endpoint) : SWITCH_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600153, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600152, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_ip::"
"handle_sorryserver_disconnect() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(600154, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600153, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_disconnect(const boost::thread::id thread_id, "
"const boost::asio::ip::tcp::endpoint& sorry_endpoint) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(600155, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600154, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::asio::ip::udp::endpoint& rs_endpoint) : "
"return_value = %d. thread id : %d.");
formatter % STOP % boost::this_thread::get_id();
- putLogDebug(600156, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600155, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t& recvlen) : thread_id = %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600157, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600156, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t& recvlen) : return_value = false. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600158, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600157, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"get_data_from_recvbuffer() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(600159, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600158, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"get_data_from_recvbuffer() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(600160, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600159, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t& recvlen) : return_value = true. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600161, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600160, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return true;
"get_data_from_recvbuffer() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(600162, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600161, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"get_data_from_recvbuffer() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(600163, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600162, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t& recvlen) : return_value = true. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600164, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600163, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t& recvlen) : return_value = false. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600165, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600164, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(tmpbuffer) % MAX_IP_MODULE_BUFFER_SIZE;
- putLogDebug(600166, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600165, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t& recvlen) : return_value = false. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600167, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600166, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"get_data_from_recvbuffer() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_ptr->data_length % datadump;
- putLogDebug(600168, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600167, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"get_data_from_recvbuffer() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_ptr->data_length % datadump;
- putLogDebug(600169, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600168, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(data_ptr->data_buffer);
- putLogDebug(600170, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600169, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"get_data_from_recvbuffer() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(600171, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600170, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"get_data_from_recvbuffer() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(600172, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600171, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t& recvlen) : return_value = true. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600173, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600172, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, boost::array<char,MAX_BUFFER_SIZE>& sendbuffer, "
"size_t& datalen) : thread_id = %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600174, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600173, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, boost::array<char,MAX_BUFFER_SIZE>& sendbuffer, "
"size_t& datalen) : return_value = false. thread_id = %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600175, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600174, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"put_data_to_sendbuffer() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % buffer_element.second % datadump;
- putLogDebug(600176, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600175, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"put_data_to_sendbuffer() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % buffer_element.second % datadump;
- putLogDebug(600177, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600176, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"put_data_to_sendbuffer() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % sendbuffer_rest_size % datadump;
- putLogDebug(600178, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600177, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"put_data_to_sendbuffer() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % sendbuffer_rest_size % datadump;
- putLogDebug(600179, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600178, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"thread_data_ptr data_ptr, boost::array<char,MAX_BUFFER_SIZE>& sendbuffer, "
"size_t& datalen) : return_value = true. thread_id = %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600180, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600179, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"const std::string& client_endpoint, const char* buffer, const size_t buffer_len, "
"size_t& x_forwarded_for_insert_pos, std::string& x_forwarded_for_context) : thread_id = %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600181, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600180, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"call find_http_header_x_forwarded_for : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(find_ret) % boost::this_thread::get_id();
- putLogDebug(600182, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600181, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const std::string& client_endpoint, const char* buffer, const size_t buffer_len, "
"size_t& x_forwarded_for_insert_pos, std::string& x_forwarded_for_context) : return_value = false. thread_id = %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600183, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600182, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
"call find_http_header_all : "
"return_value = true. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600184, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(600183, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const std::string& client_endpoint, const char* buffer, const size_t buffer_len, "
"size_t& x_forwarded_for_insert_pos, std::string& x_forwarded_for_context) : return_value = true. thread_id = %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(600185, formatter.str(), __FILE__, __LINE__);
+ putLogDebug(600184, formatter.str(), __FILE__, __LINE__);
}
/*------DEBUG LOG END------*/
return check_result;
}
+ //! get option info
+ //! @param[out] module paramter string
+ void protocol_module_sessionless::get_option_info(std::string& option)
+ {
+ /*-------- DEBUG LOG --------*/
+ if (unlikely(LOG_LV_DEBUG == getloglevel()))
+ {
+ putLogDebug(100019, "in_function : void protocol_module_sessionless::get_option_info("
+ "std::string& option).", __FILE__, __LINE__);
+ }
+ /*------DEBUG LOG END------*/
+ boost::format option_formatter("%s--sorry-uri '%s'");
+ option_formatter % (forwarded_for ? "--forwarded-for " : "") % sorry_uri.c_array();
+ option.assign(option_formatter.str());
+
+ /*-------- DEBUG LOG --------*/
+ if (unlikely(LOG_LV_DEBUG == getloglevel()))
+ {
+ boost::format formatter("out_function : void protocol_module_sessionless::get_option_info("
+ "std::string& option) : option = %s.");
+ formatter % option;
+ putLogDebug(100020, formatter.str(), __FILE__, __LINE__);
+ }
+ /*------DEBUG LOG END------*/
+ }
//! TCP/IP scheduled function registation.
//! @param[in] schedule module TCP/IP scheduled function object type
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(100019, "in_function : void protocol_module_sessionless::register_schedule("
+ putLogDebug(100021, "in_function : void protocol_module_sessionless::register_schedule("
"tcp_schedule_func_type inschedule).", __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(100020, "out_function : void protocol_module_sessionless::register_schedule("
+ putLogDebug(100022, "out_function : void protocol_module_sessionless::register_schedule("
"tcp_schedule_func_type inschedule).", __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
if (unlikely(LOG_LV_DEBUG == getloglevel()))
{
- putLogDebug(100021,
+ putLogDebug(100023,
"in/out_function : void protocol_module_sessionless::register_schedule(udp_schedule_func_type inschedule).",
__FILE__, __LINE__ );
}
"const boost::asio::ip::udp::endpoint& client_endpoint_udp) : "
"up_thread_id = %d, down_thread_id = %d, client_endpoint_tcp = [%s]:%d.");
formatter % up_thread_id % down_thread_id % client_endpoint_tcp.address().to_string() % client_endpoint_tcp.port() ;
- putLogDebug(100022, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100024, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(p_up.get()) % sizeof(session_thread_data_sessionless);
- putLogDebug(100023, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100025, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
p_up->thread_id = up_thread_id;
formatter % p_up->thread_id % p_up->thread_division % p_up->pair_thread_id % p_up->accept_end_flag
% p_up->end_flag % p_up->sorry_flag % p_up->sorryserver_switch_flag % p_up->realserver_switch_flag
% p_up->last_status % client_endpoint_tcp.address().to_string() % client_endpoint_tcp.port();
- putLogDebug(100024, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100026, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(p_down.get()) % sizeof(session_thread_data_sessionless);
- putLogDebug(100025, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100027, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
p_down->thread_id = down_thread_id;
formatter % p_down->thread_id % p_down->thread_division % p_down->pair_thread_id % p_down->accept_end_flag
% p_down->end_flag % p_down->sorry_flag % p_down->sorryserver_switch_flag
% p_down->realserver_switch_flag % p_down->last_status % client_endpoint_tcp.address().to_string() % client_endpoint_tcp.port();
- putLogDebug(100026, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100028, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::thread::id down_thread_id, const boost::asio::ip::tcp::endpoint& client_endpoint_tcp, "
"const boost::asio::ip::udp::endpoint& client_endpoint_udp) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100027, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100029, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::thread::id down_thread_id) : "
"up_thread_id = %d, down_thread_id = %d.");
formatter % up_thread_id % down_thread_id;
- putLogDebug(100028, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100030, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = STOP;
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(p_up.get());
- putLogDebug(100029, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100031, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
session_thread_data_map.erase(up_thread_id);
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(p_down.get());
- putLogDebug(100030, formatter.str(), __FILE__,
+ putLogDebug(100032, formatter.str(), __FILE__,
__LINE__ );
}
/*------DEBUG LOG END------*/
"handle_session_finalize(const boost::thread::id up_thread_id, "
"const boost::thread::id down_thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100031, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100033, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return status;
boost::format formatter("in_function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_accept(const boost::thread::id thread_id) : thread_id = %d.");
formatter % thread_id;
- putLogDebug(100032, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100034, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_accept(const boost::thread::id thread_id) : ACCEPT_END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100033, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100035, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_accept() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100034, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100036, formatter.str(), __FILE__, __LINE__ );
}
status = FINALIZE;
/*------DEBUG LOG END------*/
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_accept(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100035, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100037, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return status;
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : thread_id = %d, recvbuffer = %s, recvlen = %d.");
formatter % thread_id % buffer % recvlen;
- putLogDebug(100036, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100038, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100037, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100039, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
"handle_client_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100038, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100040, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100039, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100041, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100040, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100042, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(buffer1) % buffer_size;
- putLogDebug(100041, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100043, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memset(buffer1, 0, buffer_size);
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(buffer2) % buffer_size;
- putLogDebug(100042, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100044, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memset(buffer2, 0, buffer_size);
"handle_client_recv() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_start % data_remain_size % datadump;
- putLogDebug(100043, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100045, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from old buffer to new buffer
"handle_client_recv() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_remain_size % datadump;
- putLogDebug(100044, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100046, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100045, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100047, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(buffer1 + data_remain_size, recvbuffer.data(), recvlen);
"handle_client_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_size % recvlen % datadump;
- putLogDebug(100046, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100048, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//free old buffer1 and old buffer2
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(recv_data.recive_buffer1);
- putLogDebug(100047, formatter.str(), __FILE__,
+ putLogDebug(100049, formatter.str(), __FILE__,
__LINE__ );
}
/*------DEBUG LOG END------*/
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(recv_data.recive_buffer2);
- putLogDebug(100048, formatter.str(), __FILE__,
+ putLogDebug(100050, formatter.str(), __FILE__,
__LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_recv() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_start % data_remain_size % datadump;
- putLogDebug(100049, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100051, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from buffer1 to buffer2
"handle_client_recv() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100050, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100052, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
"handle_client_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100051, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100053, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(recv_data.recive_buffer2 + data_remain_size, recvbuffer.data(), recvlen);
"handle_client_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_size % recvlen % datadump;
- putLogDebug(100052, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100054, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//set buffer2 as using buffer
"handle_client_recv() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_start % data_remain_size % datadump;
- putLogDebug(100053, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100055, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from buffer2 to buffer1
"handle_client_recv() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_remain_size % datadump;
- putLogDebug(100054, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100056, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
"handle_client_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100055, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100057, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(recv_data.recive_buffer1 + data_remain_size, recvbuffer.data(), recvlen);
"handle_client_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_size % recvlen % datadump;
- putLogDebug(100056, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100058, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//set buffer1 as using buffer
"handle_client_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100057, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100059, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from parameter to using buffer
"data begin = %d, data_size = %d, data = %s");
formatter % (recv_data.recive_buffer_max_size - recv_data.recive_buffer_rest_size )
% recvlen % datadump;
- putLogDebug(100058, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100060, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//buffer's rest size recalc
"handle_client_recv() : call check_http_method : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100059, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100061, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//check http method result is OK
"handle_client_recv() : call check_http_version : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100060, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100062, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
"handle_client_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100061, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100063, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//search http header result is OK
"handle_client_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100062, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100064, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//search Content_Length result is OK
"handle_client_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100063, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100065, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//there are still rest data need to process
"handle_client_recv() : call check_http_method : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100064, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100066, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//check http method result is OK
"handle_client_recv() : call check_http_version : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100065, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100067, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
"handle_client_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100066, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100068, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//searched whole http header
"handle_client_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100067, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100069, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100068, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100070, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//search for send_possible item in status list
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_client_recv() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100069, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100071, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100070, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100072, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::asio::ip::tcp::endpoint & rs_endpoint) : "
"thread_id = %d, rs_endpoint = [%s]:%d.");
formatter % thread_id % rs_endpoint.address().to_string() % rs_endpoint.port();
- putLogDebug(100071, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100073, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
"boost::asio::ip::tcp::endpoint & rs_endpoint)"
" : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100072, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100074, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
"handle_realserver_select() : call schedule_tcp : "
"rs_endpoint = [%s]:%d. thread id : %d.");
formatter % rs_endpoint.address().to_string() % rs_endpoint.port() % boost::this_thread::get_id();
- putLogDebug(100073, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100075, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_select() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100074, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100076, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = CLIENT_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_select() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100075, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100077, formatter.str(), __FILE__, __LINE__ );
}
status = FINALIZE;
/*------DEBUG LOG END------*/
"boost::asio::ip::tcp::endpoint & rs_endpoint)"
" : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100076, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100078, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"size_t& datalen) : "
"return_value = %d. thread id : %d.");
formatter % STOP % boost::this_thread::get_id();
- putLogDebug(100077, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100079, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return STOP;
"boost::array<char, MAX_BUFFER_SIZE>& sendbuffer, size_t& datalen) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(100078, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100080, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_connect() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(ret) % boost::this_thread::get_id();
- putLogDebug(100079, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100081, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//search http header result is OK
"handle_realserver_connect() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(ret) % boost::this_thread::get_id();
- putLogDebug(100080, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100082, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
if (!ret)
"boost::array<char,MAX_BUFFER_SIZE>& sendbuffer, "
"size_t& datalen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100081, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100083, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_connect() : Copy data loop start. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100082, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100084, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
while (true)
"data begin = %d, data_size = %d, data = %s");
formatter % (it->send_offset + it->send_end_size)
% copy_size % datadump;
- putLogDebug(100083, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100085, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from recive_buffer to sendbuffer by sending_possible size
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% copy_size % datadump;
- putLogDebug(100084, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100086, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"data begin = %d, data_size = %d, data = %s");
formatter % (it->send_offset + it->send_end_size)
% copy_size % datadump;
- putLogDebug(100085, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100087, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from recive_buffer to sendbuffer by send buffer rest size
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% copy_size % datadump;
- putLogDebug(100086, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100088, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size += copy_size;
"data begin = %d, data_size = %d, data = %s");
formatter % (it->send_offset + it->send_end_size)
% copy_size % datadump;
- putLogDebug(100087, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100089, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(sendbuffer.data() + send_buffer_end_size - send_buffer_remian_size,
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% copy_size % datadump;
- putLogDebug(100088, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100090, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size += copy_size;
"handle_realserver_connect() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % edit_min->data_size % datadump;
- putLogDebug(100089, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100091, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy X-Forwarded-For
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% edit_min->data_size % datadump;
- putLogDebug(100090, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100092, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size += edit_min->replace_size;
"data begin = %d, data_size = %d, data = %s");
formatter % (it->send_offset + it->send_end_size)
% copy_size % datadump;
- putLogDebug(100091, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100093, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data as large as possible
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% copy_size % datadump;
- putLogDebug(100092, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100094, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_connect() : Copy data loop end. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100093, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100095, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
"data begin = %d, data_size = %d, data = %s");
formatter % it->send_offset
% copy_size % datadump;
- putLogDebug(100094, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100096, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data by send_possible size
"handle_realserver_connect() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % copy_size % datadump;
- putLogDebug(100095, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100097, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size = copy_size;
"data begin = %d, data_size = %d, data = %s");
formatter % it->send_offset
% send_buffer_remian_size % datadump;
- putLogDebug(100096, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100098, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data by buffer rest size
"handle_realserver_connect() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % send_buffer_remian_size % datadump;
- putLogDebug(100097, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100099, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size = send_buffer_remian_size;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_connect() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100098, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100100, formatter.str(), __FILE__, __LINE__ );
}
status = FINALIZE;
/*------DEBUG LOG END------*/
"boost::array<char,MAX_BUFFER_SIZE>& sendbuffer, "
"size_t& datalen) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100099, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100101, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::asio::ip::tcp::endpoint & rs_endpoint) : "
"thread_id = %d, rs_endpoint = [%s]:%d.");
formatter % thread_id % rs_endpoint.address().to_string() % rs_endpoint.port();
- putLogDebug(100100, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100102, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_connection_fail() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100101, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100103, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = CLIENT_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_connection_fail() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100102, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100104, formatter.str(), __FILE__, __LINE__ );
}
status = FINALIZE;
/*------DEBUG LOG END------*/
"handle_realserver_connection_fail(const boost::thread::id thread_id, "
"const boost::asio::ip::tcp::endpoint & rs_endpoint) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100103, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100105, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return status;
"handle_realserver_send(const boost::thread::id thread_id) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(100104, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100106, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_send() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100105, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100107, formatter.str(), __FILE__, __LINE__ );
}
status = FINALIZE;
/*------DEBUG LOG END------*/
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_send(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100106, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100108, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"boost::asio::ip::tcp::endpoint& sorry_endpoint) : "
"thread_id = %d, sorry_endpoint = [%s]:%d.");
formatter % thread_id % sorry_endpoint.address().to_string() % sorry_endpoint.port();
- putLogDebug(100107, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100109, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_select() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100108, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100110, formatter.str(), __FILE__, __LINE__ );
}
status = FINALIZE;
/*------DEBUG LOG END------*/
"handle_sorryserver_select(const boost::thread::id thread_id, boost::asio::ip::tcp::endpoint& sorry_endpoint) : return_value = %d."
" thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100109, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100111, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return status;
"boost::array<char, MAX_BUFFER_SIZE>& sendbuffer, size_t& datalen) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(100110, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100112, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
"handle_sorryserver_connect() : call find_uri : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(ret) % boost::this_thread::get_id();
- putLogDebug(100111, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100113, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//search http header result is OK
"handle_sorryserver_connect() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(ret) % boost::this_thread::get_id();
- putLogDebug(100112, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100114, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_connect() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(ret) % boost::this_thread::get_id();
- putLogDebug(100113, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100115, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
if (!ret)
"boost::array<char,MAX_BUFFER_SIZE>& sendbuffer, "
"size_t& datalen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100114, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100116, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_connect() : Copy data loop start. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100115, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100117, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
while (true)
"data begin = %d, data_size = %d, data = %s");
formatter % (it->send_offset + it->send_end_size)
% copy_size % datadump;
- putLogDebug(100116, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100118, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(sendbuffer.data() + send_buffer_end_size - send_buffer_remian_size,
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% copy_size % datadump;
- putLogDebug(100117, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100119, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size += copy_size;
"data begin = %d, data_size = %d, data = %s");
formatter % (it->send_offset + it->send_end_size)
% copy_size % datadump;
- putLogDebug(100118, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100120, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from recive_buffer to sendbuffer by send buffer rest size
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% copy_size % datadump;
- putLogDebug(100119, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100121, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size += copy_size;
"data begin = %d, data_size = %d, data = %s");
formatter % (it->send_offset + it->send_end_size)
% copy_size % datadump;
- putLogDebug(100120, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100122, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(sendbuffer.data() + send_buffer_end_size - send_buffer_remian_size,
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% copy_size % datadump;
- putLogDebug(100121, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100123, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size += copy_size;
"handle_sorryserver_connect() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % edit_min->data_size % datadump;
- putLogDebug(100122, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100124, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy X-Forwarded-For/uri
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% edit_min->data_size % datadump;
- putLogDebug(100123, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100125, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size += edit_min->replace_size;
"data begin = %d, data_size = %d, data = %s");
formatter % (it->send_offset + it->send_end_size)
% copy_size % datadump;
- putLogDebug(100124, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100126, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data as large as possible
"data begin = %d, data_size = %d, data = %s");
formatter % (send_buffer_end_size - send_buffer_remian_size)
% copy_size % datadump;
- putLogDebug(100125, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100127, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size += copy_size;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_connect() : Copy data loop end. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100126, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100128, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
"data begin = %d, data_size = %d, data = %s");
formatter % it->send_offset
% copy_size % datadump;
- putLogDebug(100127, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100129, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data by send_possible size
"handle_sorryserver_connect() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % copy_size % datadump;
- putLogDebug(100128, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100130, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size = it->send_possible_size;
"data begin = %d, data_size = %d, data = %s");
formatter % it->send_offset
% send_buffer_remian_size % datadump;
- putLogDebug(100129, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100131, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data by buffer rest size
"handle_sorryserver_connect() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % send_buffer_remian_size % datadump;
- putLogDebug(100130, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100132, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it->send_end_size = send_buffer_remian_size;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_connect() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100131, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100133, formatter.str(), __FILE__, __LINE__ );
}
status = FINALIZE;
/*------DEBUG LOG END------*/
"boost::array<char,MAX_BUFFER_SIZE>& sendbuffer, "
"size_t& datalen) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100132, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100134, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::asio::ip::tcp::endpoint & sorry_endpoint) : "
"thread_id = %d, sorry_endpoint = [%s]:%d.");
formatter % thread_id % sorry_endpoint.address().to_string() % sorry_endpoint.port();
- putLogDebug(100133, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100135, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_connection_fail() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100134, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100136, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_connection_fail() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100135, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100137, formatter.str(), __FILE__, __LINE__ );
}
status = FINALIZE;
/*------DEBUG LOG END------*/
"handle_sorryserver_connection_fail( const boost::thread::id thread_id, const boost::asio::ip::tcp::endpoint & sorry_endpoint) : return_value = %d."
" thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100136, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100138, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return status;
"handle_sorryserver_send(const boost::thread::id thread_id) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(100137, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100139, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_send() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100138, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100140, formatter.str(), __FILE__, __LINE__ );
}
status = FINALIZE;
/*------DEBUG LOG END------*/
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_send(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100139, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100141, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const size_t recvlen) : "
"return_value = %d. thread id : %d.");
formatter % STOP % boost::this_thread::get_id();
- putLogDebug(100140, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100142, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return STOP;
"const size_t recvlen) : thread_id = %d, rs_endpoint = [%s]:%d, recvbuffer = %s, recvlen = %d.");
formatter % thread_id % rs_endpoint.address().to_string() % rs_endpoint.port()
% buffer % recvlen;
- putLogDebug(100141, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100143, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100142, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100144, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
"handle_realserver_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100143, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100145, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
it = recv_data.send_status_list.begin();
"handle_realserver_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100144, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100146, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//recive buffer process
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100145, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100147, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(buffer1) % buffer_size;
- putLogDebug(100146, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100148, formatter.str(), __FILE__, __LINE__ );
}
/*-------- DEBUG LOG --------*/
memset(buffer1, 0, buffer_size);
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(buffer2) % buffer_size;
- putLogDebug(100147, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100149, formatter.str(), __FILE__, __LINE__ );
}
/*-------- DEBUG LOG END--------*/
memset(buffer2, 0, buffer_size);
"handle_realserver_recv() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_start % data_remain_size % datadump;
- putLogDebug(100148, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100150, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from old buffer to new buffer
"handle_realserver_recv() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_remain_size % datadump;
- putLogDebug(100149, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100151, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100150, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100152, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(buffer1 + data_remain_size, recvbuffer.data(), recvlen);
"handle_realserver_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_size % recvlen % datadump;
- putLogDebug(100151, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100153, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//free old buffer1 and old buffer2
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(recv_data.recive_buffer1);
- putLogDebug(100152, formatter.str(), __FILE__,
+ putLogDebug(100154, formatter.str(), __FILE__,
__LINE__ );
}
/*------DEBUG LOG END------*/
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(recv_data.recive_buffer2);
- putLogDebug(100153, formatter.str(), __FILE__,
+ putLogDebug(100155, formatter.str(), __FILE__,
__LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_recv() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_start % data_remain_size % datadump;
- putLogDebug(100154, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100156, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from buffer1 to buffer2
"handle_realserver_recv() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_remain_size % datadump;
- putLogDebug(100155, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100157, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
"handle_realserver_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_remain_size % datadump;
- putLogDebug(100156, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100158, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(recv_data.recive_buffer2 + data_remain_size, recvbuffer.data(), recvlen);
"handle_realserver_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_size % recvlen % datadump;
- putLogDebug(100157, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100159, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//set buffer2 as using buffer
"handle_realserver_recv() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_start % data_remain_size % datadump;
- putLogDebug(100158, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100160, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from buffer2 to buffer1
"handle_realserver_recv() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_remain_size % datadump;
- putLogDebug(100159, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100161, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
"handle_realserver_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100160, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100162, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(recv_data.recive_buffer1 + data_remain_size, recvbuffer.data(), recvlen);
"handle_realserver_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_size % recvlen % datadump;
- putLogDebug(100161, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100163, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//set buffer1 as using buffer
"handle_realserver_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100162, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100164, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"data begin = %d, data_size = %d, data = %s");
formatter % (recv_data.recive_buffer_max_size - recv_data.recive_buffer_rest_size )
% recvlen % datadump;
- putLogDebug(100163, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100165, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//buffer's rest size recalc
"handle_realserver_recv() : call check_http_method : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100164, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100166, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//check http method result is OK
"handle_realserver_recv() : call check_http_version : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100165, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100167, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
"handle_realserver_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100166, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100168, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//search http header result is OK
"handle_realserver_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100167, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100169, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//search Content_Length result is OK
"handle_realserver_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100168, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100170, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//there are still rest data need to process
"handle_realserver_recv() : call check_http_method : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100169, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100171, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//check http method result is OK
"handle_realserver_recv() : call check_http_version : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100170, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100172, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
"handle_realserver_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100171, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100173, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//searched whole http header
"handle_realserver_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100172, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100174, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100173, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100175, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_recv() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100174, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100176, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100175, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100177, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const size_t recvlen) : thread_id = %d, sorry_endpoint = [%s]:%d, recvbuffer = %s, recvlen = %d.");
formatter % thread_id % sorry_endpoint.address().to_string() % sorry_endpoint.port()
% buffer % recvlen;
- putLogDebug(100176, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100178, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100177, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100179, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
"handle_sorryserver_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100178, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100180, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100179, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100181, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//recive buffer process
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100180, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100182, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(buffer1) % buffer_size;
- putLogDebug(100181, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100183, formatter.str(), __FILE__, __LINE__ );
}
/*-------- DEBUG LOG END--------*/
memset(buffer1, 0, buffer_size);
{
boost::format formatter("new : address = &(%d), size = %lu.");
formatter % static_cast<void*>(buffer2) % buffer_size;
- putLogDebug(100182, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100184, formatter.str(), __FILE__, __LINE__ );
}
/*-------- DEBUG LOG END--------*/
memset(buffer2, 0, buffer_size);
"handle_sorryserver_recv() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_start % data_remain_size % datadump;
- putLogDebug(100183, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100185, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from old buffer to new buffer
"handle_sorryserver_recv() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_remain_size % datadump;
- putLogDebug(100184, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100186, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100185, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100187, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(buffer1 + data_remain_size, recvbuffer.data(), recvlen);
"handle_sorryserver_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_size % recvlen % datadump;
- putLogDebug(100186, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100188, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//free old buffer1 and old buffer2
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(recv_data.recive_buffer1);
- putLogDebug(100187, formatter.str(), __FILE__,
+ putLogDebug(100189, formatter.str(), __FILE__,
__LINE__ );
}
/*------DEBUG LOG END------*/
{
boost::format formatter("delete : address = &(%d).");
formatter % static_cast<void*>(recv_data.recive_buffer2);
- putLogDebug(100188, formatter.str(), __FILE__,
+ putLogDebug(100190, formatter.str(), __FILE__,
__LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_start % data_remain_size % datadump;
- putLogDebug(100189, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100191, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from buffer1 to buffer2
"handle_sorryserver_recv() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_remain_size % datadump;
- putLogDebug(100190, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100192, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
/*-------- DEBUG LOG --------*/
"handle_sorryserver_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100191, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100193, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(recv_data.recive_buffer2 + data_remain_size, recvbuffer.data(), recvlen);
"handle_sorryserver_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_size % recvlen % datadump;
- putLogDebug(100192, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100194, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//set buffer2 as using buffer
"handle_sorryserver_recv() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_start % data_remain_size % datadump;
- putLogDebug(100193, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100195, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from buffer2 to buffer1
"handle_sorryserver_recv() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % data_remain_size % datadump;
- putLogDebug(100194, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100196, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100195, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100197, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
memcpy(recv_data.recive_buffer1 + data_remain_size, recvbuffer.data(), recvlen);
"handle_sorryserver_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % data_remain_size % recvlen % datadump;
- putLogDebug(100196, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100198, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//set buffer1 as using buffer
"handle_sorryserver_recv() : before memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % recvlen % datadump;
- putLogDebug(100197, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100199, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : after memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % (recv_data.recive_buffer_max_size - recv_data.recive_buffer_rest_size) % recvlen % datadump;
- putLogDebug(100198, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100200, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//buffer's rest size recalc
"handle_sorryserver_recv() : call check_status_code : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100199, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100201, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//check http method result is OK
"handle_sorryserver_recv() : call check_http_version : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100200, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100202, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
"handle_sorryserver_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100201, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100203, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//search http header result is OK
"handle_sorryserver_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) %boost::this_thread::get_id();
- putLogDebug(100202, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100204, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//search Content_Length result is OK
"handle_sorryserver_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100203, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100205, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : call check_status_code : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100204, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100206, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//check http method result is OK
"handle_sorryserver_recv() : call check_http_version : "
"return_value = %d. thread id : %d.");
formatter % check_result % boost::this_thread::get_id();
- putLogDebug(100205, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100207, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
}
"handle_sorryserver_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100206, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100208, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//searched whole http header
"handle_sorryserver_recv() : call find_http_header : "
"return_value = %d. thread id : %d.");
formatter % static_cast<int>(bret) % boost::this_thread::get_id();
- putLogDebug(100207, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100209, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorryserver_recv() : send status list dump : send status list size = %d.%s");
formatter % recv_data.send_status_list.size() % datadump;
- putLogDebug(100208, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100210, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_recv() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100209, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100211, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
"const boost::array<char,MAX_BUFFER_SIZE>& recvbuffer, "
"const size_t recvlen) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100210, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100212, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_response_send_inform(const boost::thread::id thread_id) : "
"return_value = %d. thread id : %d.");
formatter % STOP % boost::this_thread::get_id();
- putLogDebug(100211, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100213, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return STOP;
"boost::array<char, MAX_BUFFER_SIZE>& sendbuffer, size_t& datalen) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(100212, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100214, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_client_connection_check() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % it->send_offset % (it->send_possible_size) % datadump;
- putLogDebug(100213, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100215, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from recive_buffer to sendbuffer by sending_possible size
"handle_client_connection_check() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % (it->send_possible_size) % datadump;
- putLogDebug(100214, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100216, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//send_end_size recalc
"handle_client_connection_check() : before memcpy (data dump) : "
"data begin = %d, data_size = %d, data = %s");
formatter % it->send_offset % send_buffer_size % datadump;
- putLogDebug(100215, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100217, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//copy data from recive_buffer to sendbuffer by buffer size
"handle_client_connection_check() : after memcpy (data dump) : "
"data begin = 0, data_size = %d, data = %s");
formatter % send_buffer_size % datadump;
- putLogDebug(100216, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100218, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//send_end_size recalc
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_client_connection_check() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100217, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100219, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
"boost::array<char, MAX_BUFFER_SIZE>& sendbuffer, size_t& datalen)"
" : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100218, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100220, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return status;
"size_t& datalen) : "
"return_value = %d. thread id : %d.");
formatter % STOP % boost::this_thread::get_id();
- putLogDebug(100219, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100221, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return STOP;
"handle_client_send(const boost::thread::id thread_id) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(100220, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100222, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_client_send() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100221, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100223, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_client_send(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100222, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100224, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("in/out_function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_client_disconnect(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % FINALIZE % boost::this_thread::get_id();
- putLogDebug(100223, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100225, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return FINALIZE;
"handle_sorry_enable(const boost::thread::id thread_id) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(100224, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100226, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable() : SORRY_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100225, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100227, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = SORRYSERVER_RECV;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable() : SORRY_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100226, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100228, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = ACCEPT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100227, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100229, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = REALSERVER_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable() : SORRYSERVER_SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100228, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100230, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//set sorry_flag on
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable() : SORRY_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100229, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100231, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = REALSERVER_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable() : SORRY_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100230, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100232, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
session_data->sorryserver_switch_flag = SORRYSERVER_SWITCH_FLAG_ON;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable() : SORRYSERVER_SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100231, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100233, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100232, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100234, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = REALSERVER_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100233, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100235, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_enable(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100234, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100236, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_sorry_disable(const boost::thread::id thread_id) : "
"thread_id = %d.");
formatter % thread_id;
- putLogDebug(100235, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100237, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable() : SORRY_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100236, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100238, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = REALSERVER_RECV;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable() : SORRY_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100237, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100239, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100238, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100240, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = SORRYSERVER_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable() : REALSERVER_SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100239, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100241, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//set sorry_flag off
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable() : SORRY_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100240, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100242, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = SORRYSERVER_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable() : SORRY_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100241, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100243, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
session_data->realserver_switch_flag = REALSERVER_SWITCH_FLAG_ON;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable() : REALSERVER_SWITCH_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100242, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100244, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
//sending ng data is exist or send_rest_size > 0
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100243, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100245, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = SORRYSERVER_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100244, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100246, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
boost::format formatter("out_function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorry_disable(const boost::thread::id thread_id) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100245, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100247, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"handle_realserver_disconnect(const boost::thread::id thread_id, const boost::asio::ip::tcp::endpoint & rs_endpoint) : "
"thread_id = %d, rs_endpoint = [%s]:%d.");
formatter % thread_id % rs_endpoint.address().to_string() % rs_endpoint.port();
- putLogDebug(100246, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100248, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_disconnect() : SORRYSERVER_SWITCH_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100247, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100249, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_disconnect() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100248, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100250, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = CLIENT_RECV;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_disconnect() : SORRYSERVER_SWITCH_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100249, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100251, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = SORRYSERVER_RECV;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_disconnect() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100250, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100252, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = CLIENT_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_realserver_disconnect() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100251, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100253, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
"handle_realserver_disconnect(const boost::thread::id thread_id, "
"const boost::asio::ip::tcp::endpoint & rs_endpoint) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100252, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100254, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::asio::ip::tcp::endpoint & sorry_endpoint) : "
"thread_id = %d, sorry_endpoint = [%s]:%d.");
formatter % thread_id % sorry_endpoint.address().to_string() % sorry_endpoint.port() ;
- putLogDebug(100253, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100255, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
EVENT_TAG status = FINALIZE;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_disconnect() : REALSERVER_SWITCH_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100254, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100256, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = REALSERVER_SELECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_disconnect() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100255, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100257, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = CLIENT_RECV;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_disconnect() : REALSERVER_SWITCH_FLAG_OFF. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100256, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100258, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = REALSERVER_RECV;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_disconnect() : END_FLAG_ON. thread id : %d.");
formatter % boost::this_thread::get_id();
- putLogDebug(100257, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100259, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = CLIENT_DISCONNECT;
boost::format formatter("function : protocol_module_base::EVENT_TAG protocol_module_sessionless::"
"handle_sorryserver_disconnect() : catch exception e = %d. thread id : %d.");
formatter % e % boost::this_thread::get_id();
- putLogDebug(100258, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100260, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
status = FINALIZE;
"handle_sorryserver_disconnect(const boost::thread::id thread_id, "
"const boost::asio::ip::tcp::endpoint& sorry_endpoint) : return_value = %d. thread id : %d.");
formatter % status % boost::this_thread::get_id();
- putLogDebug(100259, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100261, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
"const boost::asio::ip::udp::endpoint & rs_endpoint) : "
"return_value = %d. thread id : %d.");
formatter % STOP % boost::this_thread::get_id();
- putLogDebug(100260, formatter.str(), __FILE__, __LINE__ );
+ putLogDebug(100262, formatter.str(), __FILE__, __LINE__ );
}
/*------DEBUG LOG END------*/
return STOP;
#define PROTOCOL_MODULE_SESSIONLESS_H
#define MAX_OPTION_SIZE 128
-#define MAX_SESSIONLESS_MODULE_BUFFER_SIZE (4 * 1024* 1024 + MAX_BUFFER_SIZE)
+#define MAX_SESSIONLESS_MODULE_BUFFER_SIZE 8190
namespace l7vs
{
check_message_result check_parameter(const std::vector<std::string>& args);
check_message_result set_parameter(const std::vector<std::string>& args);
check_message_result add_parameter(const std::vector<std::string>& args);
+ void get_option_info(std::string& option);
void handle_rslist_update();
void register_schedule(tcp_schedule_func_type inschedule);
void register_schedule(udp_schedule_func_type inschedule);
void protocol_module_control_getInstance_test(){
// unit_test[1] getInstance 取得したインスタンスが一致していることのチェック
- protocol_module_control_testclass& control = protocol_module_control_testclass::getInstance();
- protocol_module_control_testclass& control_2 = protocol_module_control_testclass::getInstance();
+ protocol_module_control& control = protocol_module_control::getInstance();
+ protocol_module_control& control_2 = protocol_module_control::getInstance();
BOOST_CHECK_EQUAL( &control, &control_2 );
-
+
+ protocol_module_control_testclass& control_3 = protocol_module_control_testclass::getInstance();
// unit_test[2] getInstance modulefile_pathのデフォルト値のチェック
- BOOST_CHECK_EQUAL( control.get_modulefile_path(), "" );
+ BOOST_CHECK_EQUAL( control_3.get_modulefile_path(), "" );
// unit_test[3] getInstance ロードモジュールのマップのデフォルトサイズのチェック
- protocol_module_control::name_module_info_map& loadmodulemap = control.get_loadmodule_map();
+ protocol_module_control::name_module_info_map& loadmodulemap = control_3.get_loadmodule_map();
BOOST_CHECK_EQUAL( loadmodulemap.size(), (size_t)0 );
}
void schedule_module_control_getInstance_test(){
BOOST_TEST_MESSAGE( "schedule_module_control_getInstance_test" );
// unit_test[1] getInstance 取得したインスタンスが一致していることのチェック
- schedule_module_control_testclass& control = schedule_module_control_testclass::getInstance();
- schedule_module_control_testclass& control_2 = schedule_module_control_testclass::getInstance();
+ schedule_module_control& control = schedule_module_control::getInstance();
+ schedule_module_control& control_2 = schedule_module_control::getInstance();
BOOST_CHECK_EQUAL( &control, &control_2 );
+ schedule_module_control_testclass& control_3 = schedule_module_control_testclass::getInstance();
// unit_test[2] getInstance modulefile_pathのデフォルト値のチェック
- BOOST_CHECK_EQUAL( control.get_modulefile_path(), "" );
+ BOOST_CHECK_EQUAL( control_3.get_modulefile_path(), "" );
// unit_test[3] getInstance ロードモジュールのマップのデフォルトサイズのチェック
- schedule_module_control::name_module_info_map& loadmodulemap = control.get_loadmodule_map();
+ schedule_module_control::name_module_info_map& loadmodulemap = control_3.get_loadmodule_map();
BOOST_CHECK_EQUAL( loadmodulemap.size(), (size_t)0 );
}
{
}
+ void set_replication_data_processor(ip_replication_data_processor* p)
+ {
+ replication_data_processor = p;
+ }
+
+ void set_ip_data_processor(ip_session_data_processor* p)
+ {
+ ip_data_processor = p;
+ }
+
+ ip_replication_data_processor* get_replication_data_processor() const
+ {
+ return replication_data_processor;
+ }
+
+ void release_replication_data_processor()
+ {
+ delete replication_data_processor;
+ replication_data_processor = NULL;
+ }
+
+ void release_ip_data_processor()
+ {
+ delete ip_data_processor;
+ ip_data_processor = NULL;
+ }
+
protocol_module_ip_test_class()
{
}
cout << "[133]--------------------------------------------- " << endl;
- //unit_test[133] realserver_connect_failed_count=0の場合
//unit_test[133] get_endpoint_from_session_data後endpoint = 未決定
//unit_test[133] schedule_moduleにて振り分け先realserverを未決定
//unit_test[133] status = CLIENT_DISCONNECT
{
-// this->session_thread_data_map.clear();
-// thread_data_ptr data_ptr(new session_thread_data_ip);
-// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
-// tcp_schedule_func_type func_err = &schedule_tcp_nodeterminate;
-// this->register_schedule(func_err);
-// data_ptr->realserver_connect_failed_count = 0;
-// data_ptr->client_endpoint = ep1;
-// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
-//
-// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
-// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
-// inputLogWarn, inputLogInfo, inputLogDebug);
-// this->ip_data_processor = new ip_session_data_processor_stub(
-// 3600, this->replication_data_processor, ingetloglevel,
-// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
-// inputLogDebug);
-// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
-// ret = this->handle_realserver_select(boost::this_thread::get_id(),
-// rs_endpoint);
-//
-// BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
-// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
-// this->session_thread_data_map.clear();
-// delete this->replication_data_processor;
-// delete this->ip_data_processor;
-// this->replication_data_processor = NULL;
-// this->ip_data_processor = NULL;
+ this->session_thread_data_map.clear();
+ thread_data_ptr data_ptr(new session_thread_data_ip);
+ this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+ tcp_schedule_func_type func_err = &schedule_tcp_nodeterminate;
+ this->register_schedule(func_err);
+ data_ptr->client_endpoint = ep1;
+ data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+
+ this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+ ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+ inputLogWarn, inputLogInfo, inputLogDebug);
+ this->ip_data_processor = new ip_session_data_processor_stub(
+ 3600, this->replication_data_processor, ingetloglevel,
+ inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+ inputLogDebug);
+ (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+ ret = this->handle_realserver_select(boost::this_thread::get_id(),
+ rs_endpoint);
+
+ BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
+ BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
+ this->session_thread_data_map.clear();
+ delete this->replication_data_processor;
+ delete this->ip_data_processor;
+ this->replication_data_processor = NULL;
+ this->ip_data_processor = NULL;
}
cout << "[134]--------------------------------------------- " << endl;
- //unit_test[134] realserver_connect_failed_count=0の場合
//unit_test[134] get_endpoint_from_session_data後endpoint = 未決定
//unit_test[134] schedule_moduleにて振り分け先realserverを決定
//unit_test[134] データ状態がHTTP_STARTの場合
//unit_test[134] status = CLIENT_RECV
{
-// this->session_thread_data_map.clear();
-// thread_data_ptr data_ptr(new session_thread_data_ip);
-// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
-// tcp_schedule_func_type func = &schedule_tcp_determinate;
-// this->register_schedule(func);
-// data_ptr->realserver_connect_failed_count = 0;
-// data_ptr->data_state = HTTP_START;
-// data_ptr->client_endpoint = ep1;
-// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
-//
-// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
-// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
-// inputLogWarn, inputLogInfo, inputLogDebug);
-// this->ip_data_processor = new ip_session_data_processor_stub(
-// 3600, this->replication_data_processor, ingetloglevel,
-// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
-// inputLogDebug);
-// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
-// ret = this->handle_realserver_select(boost::this_thread::get_id(),
-// rs_endpoint);
-// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
-//
-// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
-// BOOST_CHECK_EQUAL(entry.last_time, 0);
-// BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
-// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
-// this->session_thread_data_map.clear();
-// delete this->replication_data_processor;
-// delete this->ip_data_processor;
-// this->replication_data_processor = NULL;
-// this->ip_data_processor = NULL;
+ this->session_thread_data_map.clear();
+ thread_data_ptr data_ptr(new session_thread_data_ip);
+ this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+ tcp_schedule_func_type func = &schedule_tcp_determinate;
+ this->register_schedule(func);
+ data_ptr->data_state = HTTP_START;
+ data_ptr->client_endpoint = ep1;
+ data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+
+ this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+ ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+ inputLogWarn, inputLogInfo, inputLogDebug);
+ this->ip_data_processor = new ip_session_data_processor_stub(
+ 3600, this->replication_data_processor, ingetloglevel,
+ inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+ inputLogDebug);
+ (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+ ret = this->handle_realserver_select(boost::this_thread::get_id(),
+ rs_endpoint);
+ ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+
+ BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+ BOOST_CHECK_EQUAL(entry.last_time, 0);
+ BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
+ BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
+ this->session_thread_data_map.clear();
+ delete this->replication_data_processor;
+ delete this->ip_data_processor;
+ this->replication_data_processor = NULL;
+ this->ip_data_processor = NULL;
}
cout << "[135]--------------------------------------------- " << endl;
- //unit_test[135] realserver_connect_failed_count=0の場合
//unit_test[135] get_endpoint_from_session_data後endpoint = 未決定
//unit_test[135] schedule_moduleにて振り分け先realserverを決定
//unit_test[135] データ状態がHTTP_HEADERの場合
//unit_test[135] status =REALSERVER_CONNECT
{
- // this->session_thread_data_map.clear();
- // thread_data_ptr data_ptr(new session_thread_data_ip);
- // this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- // tcp_schedule_func_type func = &schedule_tcp_determinate;
- // this->register_schedule(func);
- // data_ptr->realserver_connect_failed_count = 0;
- // data_ptr->data_state = HTTP_HEADER;
- // data_ptr->client_endpoint = ep1;
- // data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- // this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- // ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- // inputLogWarn, inputLogInfo, inputLogDebug);
- // this->ip_data_processor = new ip_session_data_processor_stub(
- // 3600, this->replication_data_processor, ingetloglevel,
- // inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- // inputLogDebug);
- // (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- // ret = this->handle_realserver_select(boost::this_thread::get_id(),
- // rs_endpoint);
- // ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- // BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- // BOOST_CHECK_EQUAL(entry.last_time, 0);
- // BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- // BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- // this->session_thread_data_map.clear();
- // delete this->replication_data_processor;
- // delete this->ip_data_processor;
- // this->replication_data_processor = NULL;
- // this->ip_data_processor = NULL;
+ this->session_thread_data_map.clear();
+ thread_data_ptr data_ptr(new session_thread_data_ip);
+ this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+ tcp_schedule_func_type func = &schedule_tcp_determinate;
+ this->register_schedule(func);
+ data_ptr->data_state = HTTP_HEADER;
+ data_ptr->client_endpoint = ep1;
+ data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+ this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+ ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+ inputLogWarn, inputLogInfo, inputLogDebug);
+ this->ip_data_processor = new ip_session_data_processor_stub(
+ 3600, this->replication_data_processor, ingetloglevel,
+ inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+ inputLogDebug);
+ (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+ ret = this->handle_realserver_select(boost::this_thread::get_id(),
+ rs_endpoint);
+ ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+ BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+ BOOST_CHECK_EQUAL(entry.last_time, 0);
+ BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+ BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+ this->session_thread_data_map.clear();
+ delete this->replication_data_processor;
+ delete this->ip_data_processor;
+ this->replication_data_processor = NULL;
+ this->ip_data_processor = NULL;
}
cout << "[136]--------------------------------------------- " << endl;
- //unit_test[136] realserver_connect_failed_count=0の場合
//unit_test[136] get_endpoint_from_session_data後endpoint = 未決定
//unit_test[136] schedule_moduleにて振り分け先realserverを決定
//unit_test[136] データ状態がHTTP_BODYの場合
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = &schedule_tcp_determinate;
this->register_schedule(func);
- // data_ptr->realserver_connect_failed_count = 0;
data_ptr->data_state = HTTP_BODY;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
}
cout << "[137]--------------------------------------------- " << endl;
- //unit_test[137] realserver_connect_failed_count=0の場合
//unit_test[137] get_endpoint_from_session_data後endpoint = 未決定
//unit_test[137] schedule_moduleにて振り分け先realserverを決定
//unit_test[137] データ状態がUNKNOWNの場合
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = &schedule_tcp_determinate;
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->data_state = UNKNOWN;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
}
cout << "[138]--------------------------------------------- " << endl;
- //unit_test[138] realserver_connect_failed_count=0の場合
//unit_test[138] get_endpoint_from_session_data後endpoint = 決定
//unit_test[138] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在する場合
//unit_test[138] データ状態がHTTP_STARTの場合
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
data_ptr->data_state = HTTP_START;
}
cout << "[139]--------------------------------------------- " << endl;
- //unit_test[139] realserver_connect_failed_count=0の場合
//unit_test[139] get_endpoint_from_session_data後endpoint = 決定
//unit_test[139] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在する場合
//unit_test[139] データ状態がHTTP_HEADERの場合
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
data_ptr->data_state = HTTP_HEADER;
}
cout << "[140]--------------------------------------------- " << endl;
- //unit_test[140] realserver_connect_failed_count=0の場合
//unit_test[140] get_endpoint_from_session_data後endpoint = 決定
//unit_test[140] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在する場合
//unit_test[140] データ状態がHTTP_BODYの場合
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
data_ptr->data_state = HTTP_BODY;
this->ip_data_processor = NULL;
}
cout << "[141]--------------------------------------------- " << endl;
- //unit_test[141] realserver_connect_failed_count=0の場合
//unit_test[141] get_endpoint_from_session_data後endpoint = 決定
//unit_test[141] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在する場合
//unit_test[141] データ状態がUNKNOWNの場合
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
data_ptr->data_state = UNKNOWN;
}
cout << "[142]--------------------------------------------- " << endl;
- //unit_test[142] realserver_connect_failed_count=0の場合
//unit_test[142] get_endpoint_from_session_data後endpoint = 決定
//unit_test[142] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在しない場合
//unit_test[142] no rescheduleモード
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
this->reschedule = 0;
}
cout << "[143]--------------------------------------------- " << endl;
- //unit_test[143] realserver_connect_failed_count=0の場合
//unit_test[143] get_endpoint_from_session_data後endpoint = 決定
//unit_test[143] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在しない場合
//unit_test[143] rescheduleモード
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = &schedule_tcp_nodeterminate;
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
this->reschedule = 1;
}
cout << "[144]--------------------------------------------- " << endl;
- //unit_test[144] realserver_connect_failed_count=0の場合
//unit_test[144] get_endpoint_from_session_data後endpoint = 決定
//unit_test[144] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在しない場合
//unit_test[144] rescheduleモード
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = &schedule_tcp_determinate;
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
data_ptr->data_state = HTTP_START;
}
cout << "[145]--------------------------------------------- " << endl;
- //unit_test[145] realserver_connect_failed_count=0の場合
//unit_test[145] get_endpoint_from_session_data後endpoint = 決定
//unit_test[145] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在しない場合
//unit_test[145] rescheduleモード
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = &schedule_tcp_determinate;
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
data_ptr->data_state = HTTP_HEADER;
}
cout << "[146]--------------------------------------------- " << endl;
- //unit_test[146] realserver_connect_failed_count=0の場合
//unit_test[146] get_endpoint_from_session_data後endpoint = 決定
//unit_test[146] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在しない場合
//unit_test[146] rescheduleモード
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = &schedule_tcp_determinate;
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
data_ptr->data_state = HTTP_BODY;
}
cout << "[147]--------------------------------------------- " << endl;
- //unit_test[147] realserver_connect_failed_count=0の場合
//unit_test[147] get_endpoint_from_session_data後endpoint = 決定
//unit_test[147] rsリストを検索し、realserver endpointの存在チェックしrealserver endpoint が存在しない場合
//unit_test[147] rescheduleモード
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
tcp_schedule_func_type func = &schedule_tcp_determinate;
this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = 0;
data_ptr->client_endpoint = ep1;
data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
data_ptr->data_state = UNKNOWN;
//unit_test[148] schedule_moduleにて振り分け先realserverを未決定
//unit_test[148] status = CLIENT_DISCONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func_err = &schedule_tcp_nodeterminate;
- this->register_schedule(func_err);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
-
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func_err = &schedule_tcp_nodeterminate;
+// this->register_schedule(func_err);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+//
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[149]--------------------------------------------- " << endl;
//unit_test[149] データ状態がHTTP_STARTの場合
//unit_test[149] status = CLIENT_RECV
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->data_state = HTTP_START;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
-
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
- }
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->data_state = HTTP_START;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+//
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
+ }
cout << "[150]--------------------------------------------- " << endl;
//unit_test[150] realserver_connect_failed_count=-1の場合
//unit_test[150] データ状態がHTTP_HEADERの場合
//unit_test[150] status =REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->data_state = HTTP_HEADER;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->data_state = HTTP_HEADER;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[151]--------------------------------------------- " << endl;
//unit_test[151] データ状態がHTTP_BODYの場合
//unit_test[151] status =REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->data_state = HTTP_BODY;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- // install_stb_replication_func();
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->data_state = HTTP_BODY;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// // install_stb_replication_func();
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[152]--------------------------------------------- " << endl;
//unit_test[152] データ状態がUNKNOWNの場合
//unit_test[152] status =REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->data_state = UNKNOWN;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->data_state = UNKNOWN;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[153]--------------------------------------------- " << endl;
//unit_test[153] データ状態がHTTP_STARTの場合
//unit_test[153] status = CLIENT_RECV
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- data_ptr->data_state = HTTP_START;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- realserver server;
- server.tcp_endpoint = ep2;
- rs_list.clear();
- rs_list.push_back(server);
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// data_ptr->data_state = HTTP_START;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// realserver server;
+// server.tcp_endpoint = ep2;
+// rs_list.clear();
+// rs_list.push_back(server);
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[154]--------------------------------------------- " << endl;
//unit_test[154] データ状態がHTTP_HEADERの場合
//unit_test[154] status = REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- data_ptr->data_state = HTTP_HEADER;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- realserver server;
- server.tcp_endpoint = ep2;
- rs_list.clear();
- rs_list.push_back(server);
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// data_ptr->data_state = HTTP_HEADER;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// realserver server;
+// server.tcp_endpoint = ep2;
+// rs_list.clear();
+// rs_list.push_back(server);
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[155]--------------------------------------------- " << endl;
//unit_test[155] データ状態がHTTP_BODYの場合
//unit_test[155] status = REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- data_ptr->data_state = HTTP_BODY;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- realserver server;
- server.tcp_endpoint = ep2;
- rs_list.clear();
- rs_list.push_back(server);
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// data_ptr->data_state = HTTP_BODY;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// realserver server;
+// server.tcp_endpoint = ep2;
+// rs_list.clear();
+// rs_list.push_back(server);
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[156]--------------------------------------------- " << endl;
//unit_test[156] realserver_connect_failed_count=-1の場合
//unit_test[156] データ状態がUNKNOWNの場合
//unit_test[156] status = REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- data_ptr->data_state = UNKNOWN;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- realserver server;
- server.tcp_endpoint = ep2;
- rs_list.clear();
- rs_list.push_back(server);
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// data_ptr->data_state = UNKNOWN;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// realserver server;
+// server.tcp_endpoint = ep2;
+// rs_list.clear();
+// rs_list.push_back(server);
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[157]--------------------------------------------- " << endl;
//unit_test[157] no rescheduleモード
//unit_test[157] status = CLIENT_DISCONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- this->reschedule = 0;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- rs_list.clear();
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = bind(&schedule_tcp_determinate_config_result, _1, _2, _3, _4, _5, ep2);
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// this->reschedule = 0;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// rs_list.clear();
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[158]--------------------------------------------- " << endl;
//unit_test[158] schedule_moduleにて振り分け先realserverを未決定する
//unit_test[158] status = CLIENT_DISCONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_nodeterminate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- this->reschedule = 1;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- rs_list.clear();
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_nodeterminate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// this->reschedule = 1;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// rs_list.clear();
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[159]--------------------------------------------- " << endl;
//unit_test[159] データ状態がHTTP_STARTの場合
//unit_test[159] status = CLIENT_RECV
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- data_ptr->data_state = HTTP_START;
- this->reschedule = 1;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- rs_list.clear();
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// data_ptr->data_state = HTTP_START;
+// this->reschedule = 1;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// rs_list.clear();
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[160]--------------------------------------------- " << endl;
//unit_test[160] データ状態がHTTP_HEADERの場合
//unit_test[160] status = REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- data_ptr->data_state = HTTP_HEADER;
- this->reschedule = 1;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- rs_list.clear();
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// data_ptr->data_state = HTTP_HEADER;
+// this->reschedule = 1;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// rs_list.clear();
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[161]--------------------------------------------- " << endl;
//unit_test[161] データ状態がHTTP_BODYの場合
//unit_test[161] status = REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- data_ptr->data_state = HTTP_BODY;
- this->reschedule = 1;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- rs_list.clear();
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// data_ptr->data_state = HTTP_BODY;
+// this->reschedule = 1;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// rs_list.clear();
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[162]--------------------------------------------- " << endl;
//unit_test[162] データ状態がUNKNOWNの場合
//unit_test[162] status = REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = -1;
- data_ptr->client_endpoint = ep1;
- data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
- data_ptr->data_state = UNKNOWN;
- this->reschedule = 1;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
- ip_session_entry_data.rs_endpoint = ep2;
- ip_session_entry_data.last_time = 0;
- (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
- rs_list.clear();
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
- ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
- BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
- BOOST_CHECK_EQUAL(entry.last_time, 0);
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = -1;
+// data_ptr->client_endpoint = ep1;
+// data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
+// data_ptr->data_state = UNKNOWN;
+// this->reschedule = 1;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+// ip_session_entry_data.rs_endpoint = ep2;
+// ip_session_entry_data.last_time = 0;
+// (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->write_session_data_stub(data_ptr->ip_hash, ip_session_entry_data);
+// rs_list.clear();
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+// ip_session_table_entry entry = (dynamic_cast<ip_session_data_processor_stub*>(this->ip_data_processor))->get_session_data_stub(data_ptr->ip_hash);
+// BOOST_CHECK_EQUAL(entry.rs_endpoint, rs_endpoint);
+// BOOST_CHECK_EQUAL(entry.last_time, 0);
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
//unit_test[163] データ状態がHTTP_STARTの場合
//unit_test[163] status = CLIENT_RECV
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
- data_ptr->data_state = HTTP_START;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
-
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
-
- BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
- BOOST_CHECK_EQUAL((rs_endpoint != tmp_endpoint), true);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
- }
-
- cout << "[164]--------------------------------------------- " << endl;
- //unit_test[164] realserver_connect_failed_count < realserver_connect_failed_max_countの場合
- //unit_test[164] schedule_moduleにて振り分け先realserverを決定する
- //unit_test[164] データ状態がHTTP_HEADERの場合
- //unit_test[164] status = REALSERVER_CONNECT
- {
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
- data_ptr->data_state = HTTP_HEADER;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
-
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
+// data_ptr->data_state = HTTP_START;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+//
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+//
+// BOOST_CHECK_EQUAL(ret, CLIENT_RECV);
+// BOOST_CHECK_EQUAL((rs_endpoint != tmp_endpoint), true);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_RECV);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
+ }
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL((rs_endpoint != tmp_endpoint), true);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+ cout << "[164]--------------------------------------------- " << endl;
+ //unit_test[164] realserver_connect_failed_count < realserver_connect_failed_max_countの場合
+ //unit_test[164] schedule_moduleにて振り分け先realserverを決定する
+ //unit_test[164] データ状態がHTTP_HEADERの場合
+ //unit_test[164] status = REALSERVER_CONNECT
+ {
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
+// data_ptr->data_state = HTTP_HEADER;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+//
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+//
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL((rs_endpoint != tmp_endpoint), true);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[165]--------------------------------------------- " << endl;
//unit_test[165] データ状態がHTTP_BODYの場合
//unit_test[165] status = REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
- data_ptr->data_state = HTTP_BODY;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
-
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
-
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL((rs_endpoint != tmp_endpoint), true);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
+// data_ptr->data_state = HTTP_BODY;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+//
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+//
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL((rs_endpoint != tmp_endpoint), true);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
//unit_test[166] データ状態がHTTP_UNKNOWNの場合
//unit_test[166] status = REALSERVER_CONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_determinate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
- data_ptr->data_state = UNKNOWN;
- this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
- ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
- inputLogWarn, inputLogInfo, inputLogDebug);
- this->ip_data_processor = new ip_session_data_processor_stub(
- 3600, this->replication_data_processor, ingetloglevel,
- inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
- inputLogDebug);
-
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
-
- BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
- BOOST_CHECK_EQUAL((rs_endpoint != tmp_endpoint), true);
- BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
- this->session_thread_data_map.clear();
- delete this->replication_data_processor;
- delete this->ip_data_processor;
- this->replication_data_processor = NULL;
- this->ip_data_processor = NULL;
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_determinate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
+// data_ptr->data_state = UNKNOWN;
+// this->replication_data_processor = new ip_replication_data_processor(ip_replication_area_begain,
+// ip_replication_area_size, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+// inputLogWarn, inputLogInfo, inputLogDebug);
+// this->ip_data_processor = new ip_session_data_processor_stub(
+// 3600, this->replication_data_processor, ingetloglevel,
+// inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+// inputLogDebug);
+//
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+//
+// BOOST_CHECK_EQUAL(ret, REALSERVER_CONNECT);
+// BOOST_CHECK_EQUAL((rs_endpoint != tmp_endpoint), true);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, REALSERVER_CONNECT);
+// this->session_thread_data_map.clear();
+// delete this->replication_data_processor;
+// delete this->ip_data_processor;
+// this->replication_data_processor = NULL;
+// this->ip_data_processor = NULL;
}
cout << "[167]--------------------------------------------- " << endl;
//unit_test[167] schedule_moduleにて振り分け先realserverを未決定
//unit_test[167] status = CLIENT_DISCONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- tcp_schedule_func_type func = &schedule_tcp_nodeterminate;
- this->register_schedule(func);
- //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
-
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
-
- BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
- BOOST_CHECK_EQUAL((rs_endpoint == tmp_endpoint), true);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
- this->session_thread_data_map.clear();
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// tcp_schedule_func_type func = &schedule_tcp_nodeterminate;
+// this->register_schedule(func);
+// //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT - 1;
+//
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+//
+// BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
+// BOOST_CHECK_EQUAL((rs_endpoint == tmp_endpoint), true);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
+// this->session_thread_data_map.clear();
}
//unit_test[168] realserver_connect_failed_count == realserver_connect_failed_max_countの場合
//unit_test[168] status = CLIENT_DISCONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT;
-
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
-
- BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
- BOOST_CHECK_EQUAL((rs_endpoint == tmp_endpoint), true);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
- this->session_thread_data_map.clear();
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT;
+//
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+//
+// BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
+// BOOST_CHECK_EQUAL((rs_endpoint == tmp_endpoint), true);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
+// this->session_thread_data_map.clear();
}
//unit_test[169] realserver_connect_failed_count = realserver_connect_failed_max_count+1の場合
//unit_test[169] status = CLIENT_DISCONNECT
{
- this->session_thread_data_map.clear();
- thread_data_ptr data_ptr(new session_thread_data_ip);
- this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT +1;
-
- ret = this->handle_realserver_select(boost::this_thread::get_id(),
- rs_endpoint);
-
- BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
- BOOST_CHECK_EQUAL((rs_endpoint == tmp_endpoint), true);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
- this->session_thread_data_map.clear();
+// this->session_thread_data_map.clear();
+// thread_data_ptr data_ptr(new session_thread_data_ip);
+// this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
+// //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT +1;
+//
+// ret = this->handle_realserver_select(boost::this_thread::get_id(),
+// rs_endpoint);
+//
+// BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
+// BOOST_CHECK_EQUAL((rs_endpoint == tmp_endpoint), true);
+// BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
+// this->session_thread_data_map.clear();
}
boost::asio::ip::tcp::endpoint ep2(boost::asio::ip::address::from_string("192.168.120.250"),
12345);
- boost::function<LOG_LEVEL_TAG(void)> ingetloglevel = stb_getloglevel;
- boost::function<void(const unsigned int, const std::string&,
- const char*, int)> inputLogFatal = stb_putLogFatal;
- boost::function<void(const unsigned int, const std::string&,
- const char*, int)> inputLogError = stb_putLogError;
- boost::function<void(const unsigned int, const std::string&,
- const char*, int)> inputLogWarn = stb_putLogWarn;
- boost::function<void(const unsigned int, const std::string&,
- const char*, int)> inputLogInfo = stb_putLogInfo;
- boost::function<void(const unsigned int, const std::string&,
- const char*, int)> inputLogDebug = stb_putLogDebug;
-
+
boost::asio::ip::tcp::endpoint virtual_service_endpoint;
ip_session_table_entry ip_session_entry_data;
rs_list_unlock = &rslist_unlock;
cout << "[170]--------------------------------------------- " << endl;
- //unit_test[170] realserver_connect_failed_count = realserver_connect_failed_max_count+1の場合
+ //unit_test[170] get_endpoint_from_session_data後endpoint = 未決定
+ //unit_test[170] schedule_moduleにて振り分け先realserverを未決定
//unit_test[170] status = CLIENT_DISCONNECT
+
{
thread_data_ptr data_ptr(new session_thread_data_ip);
+ data_ptr->client_endpoint = ep1;
+ data_ptr->ip_hash = l7vs_ip_service_calc_hash(data_ptr->client_endpoint);
{
boost::mutex::scoped_lock sclock(session_thread_data_map_mutex);
this->session_thread_data_map[boost::this_thread::get_id()] = data_ptr;
- //data_ptr->realserver_connect_failed_count = REALSERVER_CONNECT_FAILED_COUNT +1;
+ tcp_schedule_func_type func_err = &schedule_tcp_nodeterminate;
+ this->register_schedule(func_err);
}
+
ret = this->handle_realserver_select(boost::this_thread::get_id(),
rs_endpoint);
+ BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
+ BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
+ BOOST_CHECK_EQUAL((rs_endpoint == tmp_endpoint), true);
+ BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
+
{
boost::mutex::scoped_lock sclock(session_thread_data_map_mutex);
- BOOST_CHECK_EQUAL(ret, CLIENT_DISCONNECT);
- BOOST_CHECK_EQUAL((rs_endpoint == tmp_endpoint), true);
- BOOST_CHECK_EQUAL(data_ptr->last_status, CLIENT_DISCONNECT);
this->session_thread_data_map.erase(boost::this_thread::get_id());
}
}
//unit_test[174] データ状態にHTTP_BODYを設定する
//unit_test[174] status = REALSERVER_SEND
//unit_test[174] 送信バッファにデータをコピーし、X-Forworded-For文字列を添加する
- //unit_test[174] realserver_connect_failed_count =0
{
thread_data_ptr thread_data(new session_thread_data_ip);
this->session_thread_data_map[boost::this_thread::get_id()] = thread_data;
BOOST_CHECK_EQUAL(ret, REALSERVER_SEND);// 遷移先ステータスを設定する
BOOST_CHECK_EQUAL(thread_data->last_status, REALSERVER_SEND);// 遷移ステータスを保存する
BOOST_CHECK_EQUAL(thread_data->data_state, HTTP_BODY);// データ状態にHTTP_BODYを設定する
- //BOOST_CHECK_EQUAL(thread_data->realserver_connect_failed_count, 0);
BOOST_CHECK_EQUAL(send_buffer_len, strlen(send_buffer_context));
BOOST_CHECK_EQUAL(thread_data->buffer_sequence.empty(), true);
delete[] thread_data->data_buffer;
//unit_test[175] データ状態にHTTP_BODYを設定する
//unit_test[175] status = REALSERVER_SEND
//unit_test[175] 送信バッファにデータをコピーし
- //unit_test[175] realserver_connect_failed_count =0
-
{
thread_data_ptr thread_data(new session_thread_data_ip);
this->session_thread_data_map[boost::this_thread::get_id()] = thread_data;
BOOST_CHECK_EQUAL(ret, REALSERVER_SEND);// 遷移先ステータスを設定する
BOOST_CHECK_EQUAL(thread_data->last_status, REALSERVER_SEND);// 遷移ステータスを保存する
BOOST_CHECK_EQUAL(thread_data->data_state, HTTP_BODY);// データ状態にHTTP_BODYを設定する
- //BOOST_CHECK_EQUAL(thread_data->realserver_connect_failed_count, 0);
BOOST_CHECK_EQUAL(send_buffer_len, http_header_len);// 送信データサイズに送信可能サイズを設定する
cmp_ret = memcmp(send_buffer.c_array(),thread_data->data_buffer,http_header_len);
BOOST_CHECK_EQUAL(cmp_ret, 0);// 送信バッファにデータを送信可能サイズ分コピーする
//unit_test[176] データ状態がHTTP_BODY
//unit_test[176] status = REALSERVER_SEND
//unit_test[176] 送信バッファにデータをコピーし
- //unit_test[176] realserver_connect_failed_count =0
{
thread_data_ptr thread_data(new session_thread_data_ip);
this->session_thread_data_map[boost::this_thread::get_id()] = thread_data;
BOOST_CHECK_EQUAL(ret, REALSERVER_SEND);// 遷移先ステータスを設定する
BOOST_CHECK_EQUAL(thread_data->last_status, REALSERVER_SEND);// 遷移ステータスを保存する
BOOST_CHECK_EQUAL(send_buffer_len, http_header_len);
- //BOOST_CHECK_EQUAL(thread_data->realserver_connect_failed_count, 0);
cmp_ret = memcmp(send_buffer.c_array(),http_header_ptr,http_header_len);
BOOST_CHECK_EQUAL(cmp_ret, 0);// 送信バッファにデータを送信可能サイズ分コピーする
BOOST_CHECK_EQUAL(thread_data->current_message_rest_size, 90u);// 未送信データサイズに送信可能サイズを減算する
//unit_test[177] データ状態がUNKNOWN
//unit_test[177] status = REALSERVER_SEND
//unit_test[177] 送信バッファにデータをコピーし
- //unit_test[177] realserver_connect_failed_count =0
{
thread_data_ptr thread_data(new session_thread_data_ip);
BOOST_CHECK_EQUAL(ret, REALSERVER_SEND);// 遷移先ステータスを設定する
BOOST_CHECK_EQUAL(thread_data->last_status, REALSERVER_SEND);// 遷移ステータスを保存する
BOOST_CHECK_EQUAL(send_buffer_len, http_header_len);// 送信データサイズに送信可能サイズを設定する
- //BOOST_CHECK_EQUAL(thread_data->realserver_connect_failed_count, 0);
cmp_ret = memcmp(send_buffer.c_array(),thread_data->data_buffer + 0u, http_header_len);
BOOST_CHECK_EQUAL(cmp_ret, 0);// 送信バッファにデータを送信可能サイズ分コピーする
BOOST_CHECK_EQUAL(thread_data->current_message_rest_size, 0u);// 未送信データサイズに送信可能サイズを減算する
//unit_test[178] 送信データリストが空ではないの場合(size = 1, forwarded_for = 0)
//unit_test[178] status = REALSERVER_SEND
//unit_test[178] 送信バッファにデータをコピーし
- //unit_test[178] realserver_connect_failed_count =0
{
thread_data_ptr thread_data(new session_thread_data_ip);
BOOST_CHECK_EQUAL(ret, REALSERVER_SEND);// 遷移先ステータスを設定する
BOOST_CHECK_EQUAL(thread_data->last_status, REALSERVER_SEND);// 遷移ステータスを保存する
BOOST_CHECK_EQUAL(send_buffer_len, http_header_len - 6);// 送信データサイズに送信可能サイズを設定する
- //BOOST_CHECK_EQUAL(thread_data->realserver_connect_failed_count, 0);
cmp_ret = memcmp(send_buffer.c_array(),thread_data->data_buffer + 6u, send_buffer_len);
BOOST_CHECK_EQUAL(cmp_ret, 0);// 送信バッファにデータを送信可能サイズ分コピーする
BOOST_CHECK_EQUAL(thread_data->current_message_rest_size, 15u);// 未送信データサイズに送信可能サイズを減算する
//unit_test[179] 送信データリストが空ではないの場合(size = 2, forwarded_for = 1)
//unit_test[179] status = REALSERVER_SEND
//unit_test[179] 送信バッファにデータをコピーし
- //unit_test[179] realserver_connect_failed_count =0
{
thread_data_ptr thread_data(new session_thread_data_ip);
BOOST_CHECK_EQUAL(ret, REALSERVER_SEND);// 遷移先ステータスを設定する
BOOST_CHECK_EQUAL(thread_data->last_status, REALSERVER_SEND);// 遷移ステータスを保存する
BOOST_CHECK_EQUAL(send_buffer_len, strlen(send_buffer_context));
- //BOOST_CHECK_EQUAL(thread_data->realserver_connect_failed_count, 0);
cmp_ret = memcmp(send_buffer.c_array(),send_buffer_context, send_buffer_len);
BOOST_CHECK_EQUAL(cmp_ret, 0);// 送信バッファにデータを送信可能サイズ分コピーする
BOOST_CHECK_EQUAL(thread_data->current_message_rest_size, 15u);// 未送信データサイズに送信可能サイズを減算する
//unit_test[180] 送信データリストが空ではないの場合(size = 3, forwarded_for = 1)
//unit_test[180] status = REALSERVER_SEND
//unit_test[180] 送信バッファにデータをコピーし
- //unit_test[180] realserver_connect_failed_count =0
{
thread_data_ptr thread_data(new session_thread_data_ip);
BOOST_CHECK_EQUAL(ret, REALSERVER_SEND);// 遷移先ステータスを設定する
BOOST_CHECK_EQUAL(thread_data->last_status, REALSERVER_SEND);// 遷移ステータスを保存する
BOOST_CHECK_EQUAL(send_buffer_len, strlen(send_buffer_context));// 送信データサイズに送信可能サイズを設定する
- //BOOST_CHECK_EQUAL(thread_data->realserver_connect_failed_count, 0);
cmp_ret = memcmp(send_buffer.c_array(),send_buffer_context, send_buffer_len);
BOOST_CHECK_EQUAL(cmp_ret, 0);// 送信バッファにデータを送信可能サイズ分コピーする
BOOST_CHECK_EQUAL(thread_data->current_message_rest_size, 15u);// 未送信データサイズに送信可能サイズを減算する
//unit_test[181] 送信データリストが空ではないの場合(size = 3, forwarded_for = 1)
//unit_test[181] status = REALSERVER_SEND
//unit_test[181] 送信バッファにデータをコピーし
- //unit_test[181] realserver_connect_failed_count =0
{
thread_data_ptr thread_data(new session_thread_data_ip);
BOOST_CHECK_EQUAL(ret, REALSERVER_SEND);// 遷移先ステータスを設定する
BOOST_CHECK_EQUAL(thread_data->last_status, REALSERVER_SEND);// 遷移ステータスを保存する
BOOST_CHECK_EQUAL(send_buffer_len, strlen(send_buffer_context));// 送信データサイズに送信可能サイズを設定する
- //BOOST_CHECK_EQUAL(thread_data->realserver_connect_failed_count, 0);
cmp_ret = memcmp(send_buffer.c_array(),send_buffer_context, send_buffer_len);
BOOST_CHECK_EQUAL(cmp_ret, 0);// 送信バッファにデータを送信可能サイズ分コピーする
BOOST_CHECK_EQUAL(thread_data->current_message_rest_size, 15u);// 未送信データサイズに送信可能サイズを減算する
}
cout << "[184]--------------------------------------------- " << endl;
- //unit_test[184] rescheduleモード realserver_connect_failed_count で1を加算する 遷移先ステータスをREALSERVER_SELECT設定する
+ //unit_test[184] rescheduleモード 遷移先ステータスをREALSERVER_SELECT設定する
{
- boost::asio::ip::tcp::endpoint ep;
-
- thread_data_ptr data(new session_thread_data_ip);
- data->thread_id = boost::this_thread::get_id();
- //data->realserver_connect_failed_count = 1;
- this->reschedule = 1;
- this->session_thread_data_map[boost::this_thread::get_id()] = data;
-
- ret = this->handle_realserver_connection_fail(boost::this_thread::get_id(), ep);
-
- //遷移先ステータスを設定する
- //status = REALSERVER_SELECT
- BOOST_CHECK_EQUAL(ret, REALSERVER_SELECT);
- BOOST_CHECK_EQUAL(data->last_status, REALSERVER_SELECT);
- //BOOST_CHECK_EQUAL(data->realserver_connect_failed_count, 2);
+// boost::asio::ip::tcp::endpoint ep;
+//
+// thread_data_ptr data(new session_thread_data_ip);
+// data->thread_id = boost::this_thread::get_id();
+// this->reschedule = 1;
+// this->session_thread_data_map[boost::this_thread::get_id()] = data;
+//
+// ret = this->handle_realserver_connection_fail(boost::this_thread::get_id(), ep);
+//
+// //遷移先ステータスを設定する
+// //status = REALSERVER_SELECT
+// BOOST_CHECK_EQUAL(ret, REALSERVER_SELECT);
+// BOOST_CHECK_EQUAL(data->last_status, REALSERVER_SELECT);
}
cout << "[185]--------------------------------------------- " << endl;
- //unit_test[185] no rescheduleモード 遷移先ステータスをCLIENT_DISCONNECT設定する
+ //unit_test[185] 遷移先ステータスをCLIENT_DISCONNECT設定する
{
boost::asio::ip::tcp::endpoint ep;
thread_data_ptr data(new session_thread_data_ip);
data->thread_id = boost::this_thread::get_id();
- //data->realserver_connect_failed_count = 1;
- this->reschedule = 0;
this->session_thread_data_map[boost::this_thread::get_id()] = data;
ret = this->handle_realserver_connection_fail(boost::this_thread::get_id(), ep);
void handle_realserver_connection_fail_test_thread()
{
EVENT_TAG ret;
- boost::asio::ip::tcp::endpoint ep_err1;
cout << "[186]--------------------------------------------- " << endl;
- //unit_test[186] no rescheduleモード 遷移先ステータスをCLIENT_DISCONNECT設定する
+ //unit_test[186] 遷移先ステータスをCLIENT_DISCONNECT設定する
{
boost::asio::ip::tcp::endpoint ep;
thread_data_ptr data(new session_thread_data_ip);
{
boost::mutex::scoped_lock sclock(session_thread_data_map_mutex);
- data->thread_id = boost::this_thread::get_id();
- //data->realserver_connect_failed_count = 1;
- this->reschedule = 0;
this->session_thread_data_map[boost::this_thread::get_id()] = data;
}
ret = this->handle_realserver_connection_fail(boost::this_thread::get_id(), ep);
delete[] thread_data->data_buffer;
}
}
+
+ void get_option_info_test()
+ {
+ {
+ cout << "[414]--------------------------------------------- " << endl;
+ //unit_test[414] timeoutが0、forwarded_forが0、rescheduleが0、sorry_uriが""の場合
+ this->timeout = 0;
+ this->forwarded_for = 0;
+ this->reschedule = 0;
+ memset(this->sorry_uri.c_array(), 0, MAX_OPTION_SIZE);
+ std::string option;
+ this->get_option_info(option);
+ BOOST_CHECK_EQUAL(strcmp(option.c_str(), "--timeout 0 --no-reschedule --sorry-uri ''"), 0);
+ }
+ {
+ cout << "[415]--------------------------------------------- " << endl;
+ //unit_test[415] timeoutが3600、forwarded_forが1、rescheduleが1、sorry_uriが"/sorry"の場合
+ this->timeout = 3600;
+ this->forwarded_for = 1;
+ this->reschedule = 1;
+ memset(this->sorry_uri.c_array(), 0, MAX_OPTION_SIZE);
+ strcpy(this->sorry_uri.c_array(), "/sorry");
+ std::string option;
+ this->get_option_info(option);
+ BOOST_CHECK_EQUAL(strcmp(option.c_str(), "--timeout 3600 --forwarded-for --reschedule --sorry-uri '/sorry'"), 0);
+ }
+ }
};
/***********************************************************************************
{
protocol_module_ip_test_class obj;
- //register function
- protocol_module_ip_test_class::tcp_schedule_func_type func = &schedule_tcp_determinate;
-
- obj.register_schedule(func);
+ boost::asio::ip::tcp::endpoint virtual_service_endpoint;
+ boost::function<LOG_LEVEL_TAG(void)> ingetloglevel = stb_getloglevel;
+ boost::function<void(const unsigned int, const std::string&,
+ const char*, int)> inputLogFatal = stb_putLogFatal;
+ boost::function<void(const unsigned int, const std::string&,
+ const char*, int)> inputLogError = stb_putLogError;
+ boost::function<void(const unsigned int, const std::string&,
+ const char*, int)> inputLogWarn = stb_putLogWarn;
+ boost::function<void(const unsigned int, const std::string&,
+ const char*, int)> inputLogInfo = stb_putLogInfo;
+ boost::function<void(const unsigned int, const std::string&,
+ const char*, int)> inputLogDebug = stb_putLogDebug;
+
+ obj.set_replication_data_processor(new ip_replication_data_processor(NULL,
+ 10, virtual_service_endpoint, ingetloglevel, inputLogFatal, inputLogError,
+ inputLogWarn, inputLogInfo, inputLogDebug));
+ obj.set_ip_data_processor(new ip_session_data_processor_stub(
+ 3600, obj.get_replication_data_processor(), ingetloglevel,
+ inputLogFatal, inputLogError, inputLogWarn, inputLogInfo,
+ inputLogDebug));
+
boost::thread_group threads;
for (int i = 0; i < THREAD_COUNT; ++i)
threads.create_thread(bind(&protocol_module_ip_test_class::handle_realserver_select_tcp_test_thread, &obj));
}
threads.join_all();
+
+ obj.release_replication_data_processor();
+ obj.release_ip_data_processor();
}
//handle_realserver_select(udp)
protocol_module_ip_test_class obj;
obj.put_data_into_sendbuffer_test();
}
-
+void get_option_info_test()
+{
+ protocol_module_ip_test_class obj;
+ obj.get_option_info_test();
+}
test_suite* protocol_module_ip_test_main( )
{
ts->add(BOOST_TEST_CASE(&handle_accept_test_thread));
ts->add(BOOST_TEST_CASE(&handle_client_recv_test));
ts->add(BOOST_TEST_CASE(&handle_client_recv_test_thread));
- //ts->add(BOOST_TEST_CASE(&handle_realserver_select_tcp_test));
- //ts->add(BOOST_TEST_CASE(&handle_realserver_select_tcp_test_thread));
+ ts->add(BOOST_TEST_CASE(&handle_realserver_select_tcp_test));
+ ts->add(BOOST_TEST_CASE(&handle_realserver_select_tcp_test_thread));
ts->add(BOOST_TEST_CASE(&handle_realserver_select_udp_test));
ts->add(BOOST_TEST_CASE(&handle_realserver_connect_test));
ts->add(BOOST_TEST_CASE(&handle_realserver_connect_test_thread));
ts->add(BOOST_TEST_CASE(&create_x_forwarded_for_test));
ts->add(BOOST_TEST_CASE(&get_data_from_recvbuffer_test));
ts->add(BOOST_TEST_CASE(&put_data_into_sendbuffer_test));
+ ts->add(BOOST_TEST_CASE(&get_option_info_test));
framework::master_test_suite().add(ts);
return 0;
BOOST_CHECK_EQUAL(ret, STOP);
}
+void get_option_info_test(){
+ {
+ cout << "[546]--------------------------------------------- " << endl;
+ //unit_test[546] forwarded_forが0、sorry_uriが""の場合
+ this->forwarded_for = 0;
+ memset(this->sorry_uri.c_array(), 0, MAX_OPTION_SIZE);
+ std::string option;
+ this->get_option_info(option);
+ BOOST_CHECK_EQUAL(strcmp(option.c_str(), "--sorry-uri ''"), 0);
+ }
+ {
+ cout << "[547]--------------------------------------------- " << endl;
+ //unit_test[547] forwarded_forが1、sorry_uriが"/sorry"の場合
+ this->forwarded_for = 1;
+ memset(this->sorry_uri.c_array(), 0, MAX_OPTION_SIZE);
+ strcpy(this->sorry_uri.c_array(), "/sorry");
+ std::string option;
+ this->get_option_info(option);
+ BOOST_CHECK_EQUAL(strcmp(option.c_str(), "--forwarded-for --sorry-uri '/sorry'"), 0);
+ }
+}
+
};
/***********************************************************************************
obj.handle_realserver_close_test();
}
+void get_option_info_test(){
+ protocol_module_sessionless_test_class obj;
+ obj.get_option_info_test();
+}
+
test_suite* init_unit_test_suite( int argc, char* argv[] ){
ts->add(BOOST_TEST_CASE(&handle_sorryserver_disconnect_test));
ts->add(BOOST_TEST_CASE(&handle_sorryserver_disconnect_test_thread));
ts->add(BOOST_TEST_CASE(&handle_realserver_close_test));
+ ts->add(BOOST_TEST_CASE(&get_option_info_test));
framework::master_test_suite().add(ts);
return 0;