UltraMonkey-L7 V3(multi-thread implementation)
Revision | 0fac6b368daa7b4458f3547761e8ff9e782c2a09 (tree) |
---|---|
Time | 2014-02-24 15:25:51 |
Author | Michiro Hibari <l05102@shib...> |
Commiter | Michiro Hibari |
Fix ticket #33255 (modify delete realserver code).
@@ -1530,8 +1530,9 @@ void l7vs::virtualservice_tcp::del_realserver(const l7vs::virtualservice_element | ||
1530 | 1530 | for (std::list<realserver>::iterator rs_itr = rs_list.begin(); |
1531 | 1531 | rs_itr != rs_list.end(); ++rs_itr) { |
1532 | 1532 | if (itr->tcp_endpoint == rs_itr->tcp_endpoint) { |
1533 | + boost::asio::ip::tcp::endpoint del_endpoint = rs_itr->tcp_endpoint; | |
1533 | 1534 | rs_list.erase(rs_itr); |
1534 | - active_sessions.do_all(boost::bind(&session_thread_control::session_realserver_remove, _1, rs_itr->tcp_endpoint)); | |
1535 | + active_sessions.do_all(boost::bind(&session_thread_control::session_realserver_remove, _1, del_endpoint)); | |
1535 | 1536 | break; |
1536 | 1537 | } |
1537 | 1538 | } |