handle execept
This commit is contained in:
parent
a5af4547d9
commit
fbf15d45c0
|
@ -74,7 +74,7 @@ static int32_t streamBuildDispatchMsg(SStreamTask* pTask, SArray* data, SRpcMsg*
|
|||
pMsg->contLen = tlen;
|
||||
pMsg->code = 0;
|
||||
pMsg->msgType = pTask->dispatchMsgType;
|
||||
/*pMsg->noResp = 1;*/
|
||||
pMsg->noResp = 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -214,9 +214,11 @@ static void uvHandleReq(SSrvConn* pConn) {
|
|||
// no ref here
|
||||
}
|
||||
|
||||
if (pHead->noResp == 0) {
|
||||
// if pHead->noResp = 1,
|
||||
// 1. server application should not send resp on handle
|
||||
// 2. once send out data, cli conn released to conn pool immediately
|
||||
// 3. not mixed with persist
|
||||
transMsg.handle = pConn;
|
||||
}
|
||||
|
||||
STrans* pTransInst = pConn->pTransInst;
|
||||
(*pTransInst->cfp)(pTransInst->parent, &transMsg, NULL);
|
||||
|
|
Loading…
Reference in New Issue