update resp msg type

This commit is contained in:
yihaoDeng 2022-07-04 20:25:00 +08:00
parent b1ef7071f0
commit 9927aad95f
1 changed files with 3 additions and 3 deletions

View File

@ -400,10 +400,10 @@ static void uvPrepareSendData(SSvrMsg* smsg, uv_buf_t* wb) {
destroyConnRegArg(pConn);
transUnrefSrvHandle(pConn);
} else {
if (pMsg->msgType == 0) {
pHead->msgType = pMsg->msgType;
// set up resp msg type
if (pHead->msgType == 0 && transMsgLenFromCont(pMsg->contLen) == sizeof(STransMsgHead)) {
pHead->msgType = pConn->inType + 1;
} else {
pHead->msgType = pMsg->msgType + 1;
}
}
}