From ada56c931093f0523a34c11dc52fc9168776a11d Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 23 Mar 2009 22:05:04 +0000 Subject: [PATCH] Set a short timeout for the SSL discovery support so that we don't block requests until the attempt timesout. Fixes #9380 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@10830 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 8ca123354a..f03f8a4a0f 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2743,6 +2743,7 @@ function url_is_accessable_via_ssl($url) curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_exec($ch); @@ -3145,4 +3146,4 @@ function wp_timezone_choice($selectedzone) { } -?> \ No newline at end of file +?>