diff --git a/server/wsproxy/mastermgr.cc b/server/wsproxy/mastermgr.cc index 49f7ba2..c6a258e 100644 --- a/server/wsproxy/mastermgr.cc +++ b/server/wsproxy/mastermgr.cc @@ -142,6 +142,12 @@ void MasterMgr::RequestTargetServer(f8::MsgHdr& hdr, App::Instance()->perf.max_login_time = req_handle_time; } DownStreamMgr::Instance()->AddPendingAccount(req->account_id, req->socket_handle, req->req_tick); + } else if (ALLOC_TARGET_SERVER_SUCCESS_TIMER_EVENT == event) { + long long req_handle_time = a8::XGetTickCount() - req->req_tick; + if (req_handle_time > App::Instance()->perf.max_login_time) { + App::Instance()->perf.max_login_time = req_handle_time; + } + DownStreamMgr::Instance()->AddPendingAccount(req->account_id, req->socket_handle, req->req_tick); } } );