Skip to content
Snippets Groups Projects
Commit 8694efa0 authored by Steven Murray's avatar Steven Murray
Browse files

rmcd now retries remote requests up to 3 times

parent 13ae68e4
No related branches found
No related tags found
No related merge requests found
......@@ -378,7 +378,7 @@ static void procreq(
rqst_context.req_data = req_data;
rqst_context.clienthost = clienthost;
const unsigned int maxNbAttempts = 2;
const unsigned int maxNbAttempts = 3;
const unsigned int delayInSec = 1;
const int handlerRc = dispatchRqstHandlerWithFastRetry(req_type,
&rqst_context, maxNbAttempts, delayInSec);
......@@ -417,12 +417,11 @@ static int dispatchRqstHandlerWithFastRetry(const int req_type,
" req_type=%d req_type_str=%s attemptNb=%u maxNbAttempts=%u\n",
delayInSec, req_type, req_type_str, attemptNb, maxNbAttempts);
sleep(delayInSec);
rmc_logit(func, "Performing fast retry"
": req_type=%d req_type_str=%s attemptNb=%u maxNbAttempts=%u\n",
req_type, req_type_str, attemptNb, maxNbAttempts);
}
rmc_logit(func, "Dispatching request handler: req_type=%d req_type_str=%s"
" attemptNb=%u maxNbAttempts=%u\n",
req_type, req_type_str, attemptNb, maxNbAttempts);
const int handlerRc = dispatchRqstHandler(req_type, rqst_context);
if(RBT_FAST_RETRY != handlerRc) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment