From d7ea1075ab71236b5cfc55734b35c058ce3532b0 Mon Sep 17 00:00:00 2001 From: azw Date: Tue, 25 Apr 2023 06:06:51 +0000 Subject: [PATCH] 1 --- server/wsproxy/downstream.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/wsproxy/downstream.cc b/server/wsproxy/downstream.cc index f3aab6e..d5a9af1 100644 --- a/server/wsproxy/downstream.cc +++ b/server/wsproxy/downstream.cc @@ -58,14 +58,16 @@ void DownStream::OnClose() void DownStream::ProcCMMsg(f8::MsgHdr& hdr, int tag) { if (hdr.msgid == ss::_SS_CMPing) { - ss::SS_Ping msg; + ss::SS_SMPing msg; if (IsLongSession() && tag == ST_Tcp) { GCListener::Instance()->SendMsgEx(socket_handle_, ss::_SS_CMPing, msg); if (!long_session_wp_.expired()) { long_session_wp_.lock()->UpdatePing(); } } else { - + if (!long_session_wp_.expired()) { + msg.set_source(1); + } } return; }