feature(rpc): add retry

This commit is contained in:
yihaoDeng 2022-04-26 21:38:57 +08:00
parent ba7bfc6479
commit a8f707b9f9
1 changed files with 2 additions and 1 deletions

View File

@ -899,7 +899,8 @@ int cliAppCb(SCliConn* pConn, STransMsg* pResp, SCliMsg* pMsg) {
cliHandleReq(pMsg, pThrd);
return -1;
}
cliDestroyConn(pConn, true);
// cliDestroy((uv_handle_t*)pConn->stream);
} else if (pCtx->retryCount < TRANS_RETRY_COUNT_LIMIT) {
if (pResp->contLen == 0) {
pEpSet->inUse = (pEpSet->inUse++) % pEpSet->numOfEps;