1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-31 13:11:28 +00:00

Moved hard-coded fetch timeout values into config file to allow site-level tuning

This commit is contained in:
Barak Korren
2013-04-01 15:08:21 +03:00
parent ec8d46b29d
commit 8401101d50
4 changed files with 27 additions and 5 deletions

View File

@@ -306,8 +306,8 @@
array("If-Modified-Since: ".gmdate('D, d M Y H:i:s \G\M\T', $timestamp)));
}
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout ? $timeout : 15);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout ? $timeout : 45);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout ? $timeout : FILE_FETCH_CONNECT_TIMEOUT);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout ? $timeout : FILE_FETCH_TIMEOUT);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, !ini_get("safe_mode"));
curl_setopt($ch, CURLOPT_MAXREDIRS, 20);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);