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:
parent
3d0574cee3
commit
9fdd1163b5
|
@ -2743,6 +2743,7 @@ function url_is_accessable_via_ssl($url)
|
||||||
curl_setopt($ch, CURLOPT_FAILONERROR, true);
|
curl_setopt($ch, CURLOPT_FAILONERROR, true);
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||||
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
||||||
|
|
||||||
curl_exec($ch);
|
curl_exec($ch);
|
||||||
|
|
||||||
|
@ -3145,4 +3146,4 @@ function wp_timezone_choice($selectedzone) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue