Hi Zhe Chen,
It is possible for the streaming connection to restart or disconnect you.
There are a few reasons why this can happen and all are explained in our
Streaming API concepts document. Approaches on how to deal with disconnects
are also explained in the document.
You can find the
I will get an error says connection timed out after running my program
for many hours.
What should I do to avoid this?
my $listener = AnyEvent::Twitter::Stream-new(
consumer_key= $consumer_key,
consumer_secret = $consumer_secret,
token = $token,
token_secret=