From 403c58c20288cfed75c2deb3d053c5af42641134 Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Sun, 31 May 2020 07:42:11 +0000 Subject: [PATCH] max retry is not calculated in a right way --- src/rpc/src/rpcMain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rpc/src/rpcMain.c b/src/rpc/src/rpcMain.c index fa46c3a0f3..87790c5683 100644 --- a/src/rpc/src/rpcMain.c +++ b/src/rpc/src/rpcMain.c @@ -124,7 +124,6 @@ typedef struct SRpcConn { } SRpcConn; int tsRpcMaxUdpSize = 15000; // bytes -int tsRpcProgressTime = 10; // milliseocnds // not configurable int tsRpcMaxRetry; @@ -204,7 +203,7 @@ static void rpcUnlockConn(SRpcConn *pConn); void *rpcOpen(const SRpcInit *pInit) { SRpcInfo *pRpc; - tsRpcMaxRetry = tsRpcMaxTime * 1000 / tsRpcProgressTime; + tsRpcMaxRetry = tsRpcMaxTime * 1000 * 2 / tsRpcTimer; tsRpcHeadSize = RPC_MSG_OVERHEAD; tsRpcOverhead = sizeof(SRpcReqContext); -- GitLab