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
This commit is contained in:
westi 2009-03-23 22:05:04 +00:00
parent 05e7b08659
commit ada56c9310
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);