<p></p>
<p>Just had a bash at adding this myself, and it seems to work nicely for my usecase...<br>
Adding this changing calls to post or get, and defining a parameter for retry attempts</p>
<pre><code>ruxc_http_get(&v_http_request, &v_http_response);
        //Retry enabled, either have a server error code or a connection error
        int attempt;
        attempt = 0;
        while(attempt < _ruxc_http_retry && (v_http_response.retcode < 0 || (v_http_response.rescode > 499 && v_http_response.rescode < 699)){
                attempt++;
                LM_DBG("Retrying Request Attempt: %d - Response Code: %d - Return Code: %d - URI: %s\n",
                        attempt, v_http_response.retcode, v_http_response.rescode, v_http_request.url);
                ruxc_http_get(&v_http_request, &v_http_response);
        }
</code></pre>
<p>Im loving ruxc lol</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2820#issuecomment-896719750">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIEMP4EXEQFJBRIUQTT4JJEBANCNFSM5B55HZVQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABO7UZJAZ7Q3ZAKKFJYPXR3T4JJEBA5CNFSM5B55HZV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGVZNXBQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2820#issuecomment-896719750",
"url": "https://github.com/kamailio/kamailio/issues/2820#issuecomment-896719750",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>