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.