Browse Source

SimplePie timeout preference

https://github.com/marienfressinaud/FreshRSS/issues/656
TODO: Make a user setting
Alexandre Alapetite 11 years ago
parent
commit
6c1fe11395
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/lib_rss.php

+ 1 - 0
lib/lib_rss.php

@@ -110,6 +110,7 @@ function customSimplePie() {
 	$simplePie->set_useragent(_t('freshrss') . '/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ') ' . SIMPLEPIE_NAME . '/' . SIMPLEPIE_VERSION);
 	$simplePie->set_cache_location(CACHE_PATH);
 	$simplePie->set_cache_duration(800);
+	$simplePie->set_timeout(10);	//TODO: Make a user setting
 	$simplePie->strip_htmltags(array(
 		'base', 'blink', 'body', 'doctype', 'embed',
 		'font', 'form', 'frame', 'frameset', 'html',