mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-11-26 22:55:37 +08:00
fix test, fix core
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user