refactor rpc
This commit is contained in:
parent
8105801040
commit
f577c418e8
|
@ -99,6 +99,11 @@ static void clientProcessData(SCliConn* conn) {
|
||||||
rpcMsg.contLen = conn->readBuf.len;
|
rpcMsg.contLen = conn->readBuf.len;
|
||||||
rpcMsg.ahandle = pCtx->ahandle;
|
rpcMsg.ahandle = pCtx->ahandle;
|
||||||
(pRpc->cfp)(NULL, &rpcMsg, NULL);
|
(pRpc->cfp)(NULL, &rpcMsg, NULL);
|
||||||
|
|
||||||
|
SCliThrdObj* pThrd = conn->hostThrd;
|
||||||
|
addConnToCache(pThrd->cache, pCtx->ip, pCtx->port, conn);
|
||||||
|
free(pCtx->ip);
|
||||||
|
free(pCtx);
|
||||||
// impl
|
// impl
|
||||||
}
|
}
|
||||||
static void clientHandleReq(SCliMsg* pMsg, SCliThrdObj* pThrd);
|
static void clientHandleReq(SCliMsg* pMsg, SCliThrdObj* pThrd);
|
||||||
|
|
Loading…
Reference in New Issue