handle too many session

This commit is contained in:
yihaoDeng 2023-02-15 20:15:34 +08:00
parent f22d07319f
commit 9c050c0ea6
1 changed files with 1 additions and 1 deletions

View File

@ -1905,7 +1905,7 @@ int transSendRequest(void* shandle, const SEpSet* pEpSet, STransMsg* pReq, STran
if (val != NULL && *val >= pTransInst->connLimitNum) {
transFreeMsg(pReq->pCont);
transReleaseExHandle(transGetInstMgt(), (int64_t)shandle);
return TSDB_CODE_RPC_BROKEN_LINK;
return TSDB_CODE_RPC_MAX_SESSIONS;
}
}