CurlException: 28: connect() timed out? CurlException: 28: connect() timed out? curl curl

CurlException: 28: connect() timed out?


Same here, totally random but on large access site the error log file come quickly full :/

Bug Open here : http://developers.facebook.com/bugs/182705755149358

Production server Use the same PHP code as shown in the given exemple : https:// developers.facebook.com/blog/post/534/

2 connections on 6 pass. else :

***`print_r($e->getResult());`***

Give :

Array(    [error_code] => 28    [error] => Array        (            [message] => connect() timed out!            [type] => CurlException        )) 

Else here are the Options in the Facebook.php

/*** Default options for curl.*/public static $CURL_OPTS = array(CURLOPT_CONNECTTIMEOUT => 10,CURLOPT_RETURNTRANSFER => true,CURLOPT_TIMEOUT => 60,CURLOPT_USERAGENT => 'facebook-php-3.1',);

I've Try this :

  • Raise ConnectTimeOut => Same Problem.
  • Change Api-Read.Facebook.Com to Api.Facebook.Com => Same Problem.
  • Try with there Curl Params : CURLOPT_SSL_VERIFYPEER => false,$opts[CURLOPT_SSL_VERIFYHOST] = 2; But not a SSL Problem for my case.
  • Try to Connect to FB Api/Graph/Api-read server using telnet and port 443 => Same Problem.Respond only 2 time on 6...

Still actualizing the Platform Live-Status page of Facebook ... Api response time raising ... https://developers.facebook.com/live_status