Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the AnyEvent-Twitter-Stream CPAN distribution.

Report information
The Basics
Id: 54442
Status: open
Priority: 0/
Queue: AnyEvent-Twitter-Stream

People
Owner: Nobody in particular
Requestors: AGRUNDMA [...] cpan.org
Cc: KAPPA [...] cpan.org
AdminCc:

Bug Information
Severity: Important
Broken in: 0.10
Fixed in: (no value)



Subject: Should auto-reconnect on error
The default on_error handler just dies, but this would be better if it reconnected automatically to the stream. This would need to follow the recommended back off values so as not to hammer the server. I'll try and work on a patch.
Andy, have you succeeded in writing a patch? I'm developing a twitter app and need auto-reconnect too. If you have achived it, I'd be happy to check it out ;) Show quoted text
> The default on_error handler just dies, but this would be better if it > reconnected automatically
... Show quoted text
> I'll try and work on a patch.
On Thu Feb 25 17:36:08 2010, MARTYNOV wrote: Show quoted text
> Andy, have you succeeded in writing a patch? I'm developing a twitter app > and need auto-reconnect too. If you have achived it, I'd be happy to check > it out ;)
Sorry, I haven't had time to look at this yet. Feel free to work on it if you want! :)
Subject: Re: [rt.cpan.org #54442] Should auto-reconnect on error
Date: Wed, 31 Mar 2010 19:02:57 -0700
To: bug-AnyEvent-Twitter-Stream [...] rt.cpan.org
From: Tatsuhiko Miyagawa <miyagawa [...] gmail.com>
Sorry this is not a direct reply on this bug (yes it'd be nice the auto reconnection backoff is implemented correctly) -- but I created a fake daemon that acts like Twitter http://github.com/miyagawa/Fakehose that allows you to test this kind of thing easier. It's still very rough on the edges but you should take a look. On Thu, Feb 25, 2010 at 2:44 PM, Andy Grundman via RT <bug-AnyEvent-Twitter-Stream@rt.cpan.org> wrote: Show quoted text
>       Queue: AnyEvent-Twitter-Stream >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=54442 > > > On Thu Feb 25 17:36:08 2010, MARTYNOV wrote:
>> Andy, have you succeeded in writing a patch? I'm developing a twitter app >> and need auto-reconnect too. If you have achived it, I'd be happy to check >> it out ;)
> > Sorry, I haven't had time to look at this yet.  Feel free to work on it if you want! :) >
-- Tatsuhiko Miyagawa
From: znmeb [...] borasky-research.net
On Tue Feb 09 09:41:33 2010, AGRUNDMA wrote: Show quoted text
> The default on_error handler just dies, but this would be better if it > reconnected automatically > to the stream. This would need to follow the recommended back off > values so as not to > hammer the server. I'll try and work on a patch.
I've ended up just writing a two-level script - an inner script that runs forever and croaks on an error, and an outer wrapper that restarts when the inner one croaks. That seems to be working fine; it wouldn't be difficult to enhance the outer script logic to use the Twitter- recommended back-off scheme.