jmathai / epiphany

A micro PHP framework that's fast, easy, clean and RESTful. The framework does not do a lot of magic under the hood. It is, by design, very simple and very powerful.

Home Page:https://github.com/jmathai/epiphany

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Timeouts

GLStephen opened this issue · comments

I am seeing timeouts occur periodically in EpiCurl when used in EpiTwitter. I believe that it is related to having empty Twitter info. Is there a way to tune EpiCurl to have lower timeouts?

The timeouts I am seeing are greater than 30 second page level timeouts btw, not the usually 1 second CURL timeouts. It seems like a bug where empty info leads to very long curl timeouts.

The Twitter libs have been ported over to http://github.com/jmathai/twitter-async. Checkout those files and see if you still have the issue. Lots of bugs have been fixed since the port.

Additionally, there's a setTimeout method so you can lower it from the 30 second default.

http://github.com/jmathai/twitter-async/blob/master/EpiOAuth.php#L99