This commit is contained in:
azw 2023-04-13 23:34:15 +00:00
parent d577c31664
commit f04a5ec695

View File

@ -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);
}
}
);