Wednesday, 15 June 2011

php - Curl SSL & Connection Timeout Intermittently in Facebook Graph API -



php - Curl SSL & Connection Timeout Intermittently in Facebook Graph API -

i think problem totally different rest questions on stackoverflow. searched , googled everywhere dint find accurate solution or reason it. hope info on here.

my facebook application using facebook php sdk , apps working fine of time. give sometime few errors in general. facebook apps fails fetch user info after authentication , take much time load, working totally fine previosly. sudden alter happen every app, in between authenticate users in minor case. see in error log, throws error like: curlexception: 28: ssl connection timeout curlexception: 28: operation timed out after 60000 milliseconds 0 bytes received uncaught curlexception: 28: ssl connection timeout curlexception: 28: connect() timed out! curlexception: 7: couldn't connect host

but unusual thing is, occur @ time sudden alter automatically stop , app start working fine , normal previous after 5 - 8hrs. confused may making such problem? rate limit facebook? did nslookup, ping, curl -v, api.facebook.com , gives output too. port , firewall rules ok. please help me friends

sometimes network connections fail. remote services fail. can't think of remote service phone call on http on net 3rd party's systems fail proof. must write software expect & handle gracefully. set reasonable timeouts, failures & prepared retry few times before giving up.

php facebook facebook-graph-api curl

No comments:

Post a Comment