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

@@ -112,7 +112,7 @@ struct conn_info_t //stores info for a raw connection.for client ,there is o
u64_t last_active_time;
stat_t stat;
ev_loop* loop;
ev_loop* loop=0;
int local_listen_fd;
int remote_fd; //only used for client
@@ -123,6 +123,12 @@ struct conn_info_t //stores info for a raw connection.for client ,there is o
conn_info_t()
{
}
~conn_info_t()
{
if(loop)
ev_timer_stop(loop,&timer);
}
void update_active_time()
{
last_active_time=get_current_time();