refactor rpc

This commit is contained in:
yihaoDeng 2022-01-21 21:09:43 +08:00
parent 8105801040
commit f577c418e8
1 changed files with 5 additions and 0 deletions

View File

@ -99,6 +99,11 @@ static void clientProcessData(SCliConn* conn) {
rpcMsg.contLen = conn->readBuf.len;
rpcMsg.ahandle = pCtx->ahandle;
(pRpc->cfp)(NULL, &rpcMsg, NULL);
SCliThrdObj* pThrd = conn->hostThrd;
addConnToCache(pThrd->cache, pCtx->ip, pCtx->port, conn);
free(pCtx->ip);
free(pCtx);
// impl
}
static void clientHandleReq(SCliMsg* pMsg, SCliThrdObj* pThrd);