* libcurl operations now timeout after 180 seconds instead of hanging the calling...
[citadel.git] / citadel / modules / rssclient / serv_rssclient.c
index ef85d2cdf4d97a77253f218a552c48fb8f63f79f..3877cf9ed13cb8fd66066852f8e3928fe460176a 100644 (file)
@@ -400,6 +400,7 @@ void rss_do_fetching(char *url, char *rooms) {
        curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errmsg);
        curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
        curl_easy_setopt(curl, CURLOPT_USERAGENT, CITADEL);
+       curl_easy_setopt(curl, CURLOPT_TIMEOUT, 180);           /* die after 180 seconds */
        if (!IsEmptyStr(config.c_ip_addr)) {
                curl_easy_setopt(curl, CURLOPT_INTERFACE, config.c_ip_addr);
        }