1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +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

@@ -163,6 +163,27 @@
// These two options enable SMTP authentication when sending
// outgoing mail. Only used with SMTP_HOST
// **************************************
// *** Update proces tuning settings ***
// **************************************
define('FEED_FETCH_TIMEOUT', 45);
// How may seconds to wait for response when requesting feed from a site
// You may need to decease this if you see errors like "MySQL server
// has gone away" pop up in your feed update logs after fetching feeds
// from slow websites
define('FEED_FETCH_NO_CACHE_TIMEOUT', 15);
// How may seconds to wait for response when requesting feed from a
// site when that feed wasn't cached before
define('FILE_FETCH_TIMEOUT', 45);
// Default timeout when fetching files from remote sites
define('FILE_FETCH_CONNECT_TIMEOUT', 15);
// How many seconds to wait for initial response from website when
// fetching files from remote sites
// ***************************************
// *** Other settings (less important) ***
// ***************************************