From f091d8f5e60a86a45f039312440d13916aaa4bc6 Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Thu, 2 Apr 2020 08:28:15 +0800 Subject: [PATCH] connection is cache has already been released because of the broken link --- src/rpc/src/rpcMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/src/rpcMain.c b/src/rpc/src/rpcMain.c index 21ce7ee60b..3e83293a2f 100755 --- a/src/rpc/src/rpcMain.c +++ b/src/rpc/src/rpcMain.c @@ -658,7 +658,7 @@ static SRpcConn *rpcSetupConnToServer(SRpcReqContext *pContext) { SRpcIpSet *pIpSet = &pContext->ipSet; pConn = rpcGetConnFromCache(pRpc->pCache, pIpSet->ip[pIpSet->inUse], pIpSet->port, pContext->connType); - if ( pConn == NULL ) { + if ( pConn == NULL || pConn->user[0] == 0) { char ipstr[20] = {0}; tinet_ntoa(ipstr, pIpSet->ip[pIpSet->inUse]); pConn = rpcOpenConn(pRpc, ipstr, pIpSet->port, pContext->connType);