diff --git a/source/libs/stream/src/tstream.c b/source/libs/stream/src/tstream.c index 70651840f707872066af05aa45162bfd8a14f806..c5189637ac7d6593ab257b5c92706cf59b2d08ec 100644 --- a/source/libs/stream/src/tstream.c +++ b/source/libs/stream/src/tstream.c @@ -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; } diff --git a/source/libs/transport/src/transSrv.c b/source/libs/transport/src/transSrv.c index c137657a99e3d36ddbe0da0e862562fc77a7ece4..dfb5eb35d62f4f0ba886148c369852956851dc60 100644 --- a/source/libs/transport/src/transSrv.c +++ b/source/libs/transport/src/transSrv.c @@ -214,9 +214,11 @@ static void uvHandleReq(SSrvConn* pConn) { // no ref here } - if (pHead->noResp == 0) { - transMsg.handle = pConn; - } + // 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);