fix test, fix core

This commit is contained in:
wangyu-
2018-06-04 02:59:08 -05:00
parent d355031613
commit 8827c8469c
6 changed files with 41 additions and 6 deletions

View File

@@ -237,8 +237,11 @@ int conn_manager_t::exist(ip_port_t ip_port)
int conn_manager_t::erase(unordered_map<u64_t,conn_info_t*>::iterator erase_it)
{
////////todo close and erase timer_fd ,check fd64 empty ///dont need
delete(erase_it->second);
mp.erase(erase_it->first);
return 0;
}
int conn_manager_t::clear_inactive()