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
This commit is contained in:
Peter Westwood 2009-03-23 22:05:04 +00:00
parent 3d0574cee3
commit 9fdd1163b5
1 changed files with 2 additions and 1 deletions

View File

@ -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) {
}
?>
?>