Skip to content

Commit

Permalink
Increase HTTP registration timeout (#373)
Browse files Browse the repository at this point in the history
The current HTTP registration timeout (5s) has proven to be too slow for some
nodes.  Bump the timeout to 15s.
  • Loading branch information
Allan-N committed Jul 29, 2024
1 parent af2f9ea commit cf7b67f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions res/res_rpt_http_registrations.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ static struct ast_str *curl_post(const char *url, const char *header, const char
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, -1L);
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, slist);
curl_easy_setopt(curl, CURLOPT_POST, 1L); /* CURLOPT_HEADER and CURLOPT_NOBODY are implicit */
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 1000L);
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 15L);
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 15L);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_errbuf);

if (curl_easy_perform(curl) != CURLE_OK) {
Expand Down

0 comments on commit cf7b67f

Please sign in to comment.