提交 403c58c2 编写于 作者: 陶建辉(Jeff)'s avatar 陶建辉(Jeff)

max retry is not calculated in a right way

上级 423fa696
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册