max retry is not calculated in a right way
This commit is contained in:
parent
423fa69620
commit
403c58c202
|
@ -124,7 +124,6 @@ typedef struct SRpcConn {
|
||||||
} SRpcConn;
|
} SRpcConn;
|
||||||
|
|
||||||
int tsRpcMaxUdpSize = 15000; // bytes
|
int tsRpcMaxUdpSize = 15000; // bytes
|
||||||
int tsRpcProgressTime = 10; // milliseocnds
|
|
||||||
|
|
||||||
// not configurable
|
// not configurable
|
||||||
int tsRpcMaxRetry;
|
int tsRpcMaxRetry;
|
||||||
|
@ -204,7 +203,7 @@ static void rpcUnlockConn(SRpcConn *pConn);
|
||||||
void *rpcOpen(const SRpcInit *pInit) {
|
void *rpcOpen(const SRpcInit *pInit) {
|
||||||
SRpcInfo *pRpc;
|
SRpcInfo *pRpc;
|
||||||
|
|
||||||
tsRpcMaxRetry = tsRpcMaxTime * 1000 / tsRpcProgressTime;
|
tsRpcMaxRetry = tsRpcMaxTime * 1000 * 2 / tsRpcTimer;
|
||||||
tsRpcHeadSize = RPC_MSG_OVERHEAD;
|
tsRpcHeadSize = RPC_MSG_OVERHEAD;
|
||||||
tsRpcOverhead = sizeof(SRpcReqContext);
|
tsRpcOverhead = sizeof(SRpcReqContext);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue