From 9fdd1163b592bdbc695db9183cd9190b02ba3ef8 Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@10830 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 +?>