Increase timeouts to 7 seconds

docs
mdPlusPlus 3 years ago
parent 9ba0433dd4
commit 57f054df46

@ -5,10 +5,10 @@
// some global stuff
// set timeout for file_get_contents()
ini_set('default_socket_timeout', 5); // 5 seconds, default is 60
ini_set('default_socket_timeout', 7); // 7 seconds, default is 60
// curl timeout is millisecons
$curl_timeout_ms = 5000;
$curl_timeout_ms = 7000;
// do not report warnings (timeouts, SSL/TLS errors)
error_reporting(E_ALL & ~E_WARNING);
@ -44,7 +44,7 @@
$timestamp = time(); // unix timestamp in seconds
echo("Running, please wait..." . PHP_EOL);
echo("This script will take approximately 2 minutes to run." . PHP_EOL);
echo("This script will take approximately 3 minutes to run." . PHP_EOL);
$html = get_html_from_known_sources();
$wild_join_links = extract_join_links_from_html($html);
@ -67,8 +67,6 @@
// print_r($final_join_links);
//TODO: What about room view links?
$table_html = get_table_html($room_assignments);
$title = "Self-updating list of active Session Communities";
$final_html = create_html_page_from_table($table_html, $title, $timestamp);

Loading…
Cancel
Save