opt transport

This commit is contained in:
Yihao Deng 2024-07-12 11:35:14 +00:00
parent 0a138a5078
commit 6e004abc7d
2 changed files with 5 additions and 1 deletions

View File

@ -1182,7 +1182,8 @@ void cliSendBatch_shareConn(SCliConn* pConn) {
int32_t totalLen = 0;
if (size == 0) {
tError("%s conn %p not msg to send", pTransInst->label, pConn);
cliHandleExcept(pConn);
ASSERT(0);
// cliHandleExcept(pConn);
return;
}
uv_buf_t* wb = taosMemoryCalloc(size, sizeof(uv_buf_t));

View File

@ -427,6 +427,9 @@ static bool uvHandleReq(SSvrConn* pConn) {
transMsg.msgType = pHead->msgType;
transMsg.code = pHead->code;
if (pHead->seqNum != 0) {
ASSERT(0);
}
// pHead->noResp = 1,
// 1. server application should not send resp on handle
// 2. once send out data, cli conn released to conn pool immediately