I have implemented User Streams service, everything working fine, but sometimes the tweets/events stop coming!
I can see that stream is still a live - there is no errors in log, it is just running
That’s very strange! And I had have to restart the connection manually
I’m using linqtotwitter component, but I had used my own implementation of Users Stream, and I had exactly the same problem before
and that’s why I’ve implemented User Streams by well known 3rd party library linqtotwitter
I have investigated possible cases from this resourse https://dev.twitter.com/docs/streaming-apis/connecting#Disconnections
A client establishes too many connections with the same credentials.
At the moment we have only one connection at the same time, and we do not creating no any other connections - we are processing only one Twitter account by User Streams at this time.
A client stops reading data suddenly.
Our service just read all new tweets/events and put them to the queue - it works very fast and we had not any problem with stopping reading data.
A client reads data too slowly.
That’s also not possible, our service just reading the data and move them to the queue for processing, and at the moment we have not so many tweets (about 150-200 per minute). So, it is not a problem
A streaming server is restarted. This is usually related to a code deploy and is not very frequent.
Twitter’s network configuration changes.
But in this case we should get TCP or HTTP error - but we haven’t got any errors
if that happened, I would see it in the log, because I have implemented that 90sec timer which described here https://dev.twitter.com/docs/streaming-apis/connecting#Stalls
What could it be?