set link secured except code is NOT_READY
This commit is contained in:
parent
3ae155445f
commit
36f4948b25
|
@ -446,6 +446,9 @@ void rpcSendResponse(const SRpcMsg *pRsp) {
|
||||||
// set the idle timer to monitor the activity
|
// set the idle timer to monitor the activity
|
||||||
taosTmrReset(rpcProcessIdleTimer, pRpc->idleTime, pConn, pRpc->tmrCtrl, &pConn->pIdleTimer);
|
taosTmrReset(rpcProcessIdleTimer, pRpc->idleTime, pConn, pRpc->tmrCtrl, &pConn->pIdleTimer);
|
||||||
rpcSendMsgToPeer(pConn, msg, msgLen);
|
rpcSendMsgToPeer(pConn, msg, msgLen);
|
||||||
|
|
||||||
|
// if not set to secured, set it expcet NOT_READY case, since client wont treat it as secured
|
||||||
|
if (pConn->secured == 0 && pMsg->code != TSDB_CODE_RPC_NOT_READY)
|
||||||
pConn->secured = 1; // connection shall be secured
|
pConn->secured = 1; // connection shall be secured
|
||||||
|
|
||||||
if (pConn->pReqMsg) rpcFreeCont(pConn->pReqMsg);
|
if (pConn->pReqMsg) rpcFreeCont(pConn->pReqMsg);
|
||||||
|
|
Loading…
Reference in New Issue