From 387dad0f23138c8ee375bb9914299276f5f295ad Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 7 Dec 2018 10:49:07 +0100 Subject: lib/helper.php: site_is_reachable(): increase timeout to 10 seconds - 1 second was just the debug/developement value --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/helper.php b/lib/helper.php index 05ff2e1..e2235fb 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -172,7 +172,7 @@ function if_unset($array, $index, $default) { function site_is_reachable($url) { $scd = stream_context_get_default(); - stream_context_set_default(array('timeout' => 1)); + stream_context_set_default(array('timeout' => 10)); $headers = get_headers($url); stream_context_set_default($scd); if (is_array($headers)) -- cgit v1.2.3-70-g09d2