semifor / Net-Twitter

A Perl interface to the Twitter APIs
83 stars 37 forks source link

Executing Search not ending #46

Closed joseproura closed 9 years ago

joseproura commented 10 years ago

Since 23/04 Twitter have problems with some of our programs that search via Net::Twitter.

The problem seems related with issues in Twitter (API Status page https://dev.twitter.com/status)

After investigating we ends with the call to $netTwitter->search never ends and the process start consuming 90-100% CPU.

We though that the problem is that Net::Twitter is performing the search via LWP, we have some experience with LWP and we know that LWP is not managing good timeouts, with some calls that never ends. Looking the code of the component I does not find any control of wrong behaviour of LWP and I think it could be interesting.

We resolve the problem setting a alarm signal to 5s before the function and everything starts to works good.

semifor commented 10 years ago

Thank you for the report. This is very helpful. I'm away for a few days, but hopefully we can find a permanent solution soon.

semifor commented 9 years ago

This has thankfully been resolved with updates to dependencies.