Skip to content
Browse files

RSS wall: add timeouts

  • Loading branch information...
1 parent 8d3ffcc commit 1c8d4a595a022238dfd918cf7ee2e970e64385d9 @sbourdeauducq sbourdeauducq committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/rsswall.c
View
4 src/rsswall.c
@@ -268,6 +268,10 @@ static char *feed_get_last(const char *url)
return NULL;
}
curl_easy_setopt(curl_handle, CURLOPT_URL, url);
+ /* FIXME: libcurl timeouts do not work in RTEMS */
+ // maybe needed? curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
+ curl_easy_setopt(curl_handle, CURLOPT_CONNECTTIMEOUT, 5);
+ curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 5);
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, data_callback);
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)xml_handle);
curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "flickernoise/"VERSION);

0 comments on commit 1c8d4a5

Please sign in to comment.
Something went wrong with that request. Please try again.