Set a short timeout for the SSL discovery support so that we don't block requests until the attempt timesout. Fixes #9380 for 2.7.2 props josephscott

git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-03-23 22:20:41 +00:00
parent 01725d680a
commit d6926a1f65

View File

@ -2618,6 +2618,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);
@ -2909,6 +2910,4 @@ function wp_clone( $object ) {
}
return $can_clone ? clone( $object ) : $object;
}
?>