[Twisted-Python] Dealing with an intermittent PB server

Jp Calderone exarkun at divmod.com
Wed Feb 16 12:17:06 EST 2005

On Wed, 16 Feb 2005 11:56:20 -0500, James Y Knight <foom at fuhm.net> wrote:
>On Feb 15, 2005, at 11:28 PM, Jp Calderone wrote:
> > On Tue, 15 Feb 2005 19:56:15 -0800, Dave Cook <daverz at gmail.com> wrote:
> >  Always always always use errbacks.  *Especially* for Deferreds that 
> > can
> > fail due to transient network conditions.
> Really that advice applies to Nevow too. *It* should be adding an 
> errback to that deferred to do something useful like aborting the 
> connection or printing an error.
> James

  Good point.  If there's no way the Deferred can get back to application 
code from the framework, then the framework should take responsibility for
error handling.  This is the same as using a try/bare-except in framework 
code around synchronous calls into application code.


More information about the Twisted-Python mailing list