Hello,
I am using AnyEvent::Digg::Stream version 0.3, and find that after some
period, the stream stops recieving events. I confirmed with tcpdump that
no more packets are being transferred between my host and
services.digg.com. I am only processing on diggs and comments:
my $cli = AnyEvent::Digg::Stream->new(
events => [qw ( digg comment )],
on_digg => $process,
on_comment => $process
);
my $ready = AnyEvent->condvar;
$ready->recv;
Where $process is a closure to deal with a recieved message (it extracts
a link and puts it in a message queue).
I don't know if it is Digg not sending any more events, or requesting
the library disconnects, but as a user of the library, I just see the my
script block (presumably on recv()). It seems to happen after a "while"
- at least 15 minutes - but sometimes as long as after an hour or two.
It would be fine is the libary exited in this case - as I find
reconnecting starts the stream of data again.
Are you aware of any API changes or maximum connected time for the digg
stream?
This is on Perl v5.10.1.
Many thanks,
James