From 57f054df462f01c7da22cdedd5723ed09dbaad6c Mon Sep 17 00:00:00 2001 From: mdPlusPlus Date: Sat, 31 Dec 2022 00:13:21 +0100 Subject: [PATCH] Increase timeouts to 7 seconds --- get_online_session_communities.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/get_online_session_communities.php b/get_online_session_communities.php index 42d2cda1..e42d664e 100644 --- a/get_online_session_communities.php +++ b/get_online_session_communities.php @@ -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);