Comments (4)
Are you getting tweets before the socket disconnects, each time? What are some sample run times and tweet counts before each disconnect? Is it disconnecting when the feed is at its quietest, or at its noisiest?
from phirehose.
I was getting tweets before the socket disconnects pretty consistently but since I have been testing it tonight I have noticed that maybe twice out of every ten reconnects I won't get any tweets at all. It has stayed connected anywhere from about 10 minutes at the most to about 3 minutes at the usual minimum. The frequency is pretty random. I know from past experience that the average statuses/sec or consume rate usually is around 25-27. It does have its anomalies and will peak around 44. If you want some sample output I can get some from console. Also, I am not using any filters.
from phirehose.
Based on that, my guess would be your ISP is killing your sockets. A bit of a guess, but reasonably easy to confirm: try setting up on another server. (BTW, you are sure you do not have two instances running, trying to use this account? I imagine that would give the same behaviour you see.)
Assuming you know enough linux, you could set up on an EC2 micro instance quite quickly, easily and cheaply; if that also doesn't work it suggests the problem is your account, or your script. If it does work, it suggests the problem is your ISP or something about OSX PHP. To eliminate the latter, try and find some online Mac cloud hosting?
from phirehose.
Ugh, thanks Comcast. There was a reason I got a business class plan and it was so I could do this stuff. Tried on another server (Ubuntu 14) and the issue goes away. Also made sure I didn't have two instances running at the same time. The problem with a remote server is the storage costs are outrageous. I have enough home storage to be able to store a year's worth of data and analysis. I also can't transfer data as fast as it is coming in from a remote to my home server. I guess I don't really have any other options. I appreciate all the help and thanks for all the contributions.
from phirehose.
Related Issues (20)
- Why is Oauthphirehose labeled as internal? HOT 1
- Phirehose Suddenly Stopped Working HOT 12
- Wiki Introduction missing 'level' parameter from log callback.
- fsockopen peer certificate did not match
- [Question] Can we get previous tweet using streaming API? HOT 2
- How to echo out the error response from the Twitter streaming API
- Still having issue with connections HOT 2
- Extended Tweets HOT 5
- update keywords (tags) while connected HOT 2
- count(): Parameter must be an array or an object that implements Countable HOT 1
- count(): Parameter must be an array or an object that implements Countable HOT 1
- Update Packagist? HOT 4
- Tag a new Release for PHP 7.2 support HOT 7
- Connection keeps failing once a day HOT 2
- The future of phirehose with the retiring of streaming APIs from twitter HOT 1
- Call to undefined function socket_last_error HOT 4
- Delay in stream?
- Following returns NULL
- Required parameter $params follows optional parameter $method
- api-v1 are no longer available in new apps.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phirehose.