From cd6f90eab89f4f62856343dce57214ac77b4c2f5 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 13 Dec 2019 10:32:18 +0800 Subject: [PATCH] 1 --- server/wsproxy/gameclientmgr.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/wsproxy/gameclientmgr.cc b/server/wsproxy/gameclientmgr.cc index 2b54a09..340caa9 100644 --- a/server/wsproxy/gameclientmgr.cc +++ b/server/wsproxy/gameclientmgr.cc @@ -75,6 +75,7 @@ void GameClientMgr::BindTargetConn(int socket_handle, int conn_instance_id) client->socket_handle = socket_handle; client->conn = conn; socket_hash_[client->socket_handle] = client; + a8::UdpLog::Instance()->Info("BindTargetConn socket_handle:%d", {socket_handle}); { auto itr = pending_account_hash_.find(socket_handle); if (itr != pending_account_hash_.end()) { @@ -91,6 +92,7 @@ void GameClientMgr::BindTargetConn(int socket_handle, int conn_instance_id) cur_tick - req_tick }); } + a8::UdpLog::Instance()->Info("BindTargetConn account_id:%s", {account_id}); RemovePendingAccount(socket_handle); } } @@ -100,6 +102,7 @@ void GameClientMgr::BindTargetConn(int socket_handle, int conn_instance_id) void GameClientMgr::AddPendingAccount(const std::string& account_id, int socket_handle, long long req_tick) { + a8::UdpLog::Instance()->Info("AddPendingAccount %s %d", {account_id, socket_handle}); auto itr = pending_account_hash_.find(socket_handle); if (itr == pending_account_hash_.end()){ timer_list* timer = a8::Timer::Instance()->AddDeadLineTimerAndAttach(1000 * 10, @@ -122,6 +125,7 @@ void GameClientMgr::AddPendingAccount(const std::string& account_id, int socket_ void GameClientMgr::RemovePendingAccount(int socket_handle) { + a8::UdpLog::Instance()->Info("RemovePendingAccount %d", {socket_handle}); auto itr = pending_account_hash_.find(socket_handle); if (itr != pending_account_hash_.end()) { a8::Timer::Instance()->DeleteTimer(std::get<2>(itr->second));