From ad2648969fd6bad164a49a48893271a91b9a9daa Mon Sep 17 00:00:00 2001 From: liu0x54 Date: Mon, 27 Apr 2020 13:17:43 +0800 Subject: [PATCH] [TD-154] ban authentication based on failure count --- src/rpc/src/trpc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/rpc/src/trpc.c b/src/rpc/src/trpc.c index 4f06e214af..d8f0cac874 100755 --- a/src/rpc/src/trpc.c +++ b/src/rpc/src/trpc.c @@ -928,13 +928,8 @@ int taosProcessMsgHeader(STaosHeader *pHeader, SRpcConn **ppConn, STaosRpc *pSer code = ret; goto _exit; } - }else { - tError("%s cid:%d sid:%d id:%s, auth update callback not found, msg discarded pConn:%p", pServer->label, chann, sid, - pConn->meterId, pConn); - code = TSDB_CODE_AUTH_FAILURE; - goto _exit; } - + if (taosAuthenticateMsg((uint8_t *)pHeader, dataLen - TSDB_AUTH_LEN, pDigest->auth, pConn->secret) < 0) { char ipstr[24]; tinet_ntoa(ipstr, ip); -- GitLab