UltraMonkey-L7 V3(multi-thread implementation)
Revisión | 580f2046282fd73e58a8326a40d1ea3ed17025d2 (tree) |
---|---|
Tiempo | 2014-02-26 13:36:27 |
Autor | Hiroaki Nakano <nakano.hiroaki@nttc...> |
Commiter | Hiroaki Nakano |
Merge branch 'modify_del_rs_code' into v3.1.1-devel
@@ -1528,8 +1528,9 @@ void l7vs::virtualservice_tcp::del_realserver(const l7vs::virtualservice_element | ||
1528 | 1528 | for (std::list<realserver>::iterator rs_itr = rs_list.begin(); |
1529 | 1529 | rs_itr != rs_list.end(); ++rs_itr) { |
1530 | 1530 | if (itr->tcp_endpoint == rs_itr->tcp_endpoint) { |
1531 | + boost::asio::ip::tcp::endpoint del_endpoint = rs_itr->tcp_endpoint; | |
1531 | 1532 | rs_list.erase(rs_itr); |
1532 | - active_sessions.do_all(boost::bind(&session_thread_control::session_realserver_remove, _1, rs_itr->tcp_endpoint)); | |
1533 | + active_sessions.do_all(boost::bind(&session_thread_control::session_realserver_remove, _1, del_endpoint)); | |
1533 | 1534 | break; |
1534 | 1535 | } |
1535 | 1536 | } |