Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

RSS wall: add timeouts

  • Loading branch information...
commit 1c8d4a595a022238dfd918cf7ee2e970e64385d9 1 parent 8d3ffcc
@sbourdeauducq sbourdeauducq authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.