From c82e25b233a023c6ed06ac688471daa9c84c304e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 16 Jan 2019 15:10:43 +0800 Subject: [PATCH] 1 --- server/wsproxy/target_conn.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/wsproxy/target_conn.cc b/server/wsproxy/target_conn.cc index de6621d..8c4bda9 100644 --- a/server/wsproxy/target_conn.cc +++ b/server/wsproxy/target_conn.cc @@ -151,6 +151,9 @@ void TargetConn::on_socketread(a8::TcpClient* sender, char* buf, unsigned int le memmove(recv_buff_, recv_buff_ + offset, recv_bufflen_ - offset); } recv_bufflen_ -= offset; + #if 1 + last_pong_tick = a8::XGetTickCount(); + #endif } void TargetConn::CheckAlive() @@ -162,10 +165,8 @@ void TargetConn::CheckAlive() last_pong_tick = a8::XGetTickCount(); Open(); } else { - #if 0 ss::SS_Ping msg; - SendToRoomServer(msg); - #endif + SendMsg(msg); } } }