[Twisted-Python] Re: [Twisted-commits] r12418 - survive a re-entrant call to .resumeProducing, which happens under the cf

Glyph Lefkowitz glyph at divmod.com
Tue Nov 9 07:26:48 EST 2004


On Mon, 2004-11-08 at 22:15 -0500, James Y Knight wrote:
> On Nov 8, 2004, at 9:06 PM, Brian Warner wrote:
> > Modified:
> >    trunk/twisted/web/static.py
> > Log:
> > survive a re-entrant call to .resumeProducing, which happens under the 
> > cf
> > reactor
> 
> Ew ew ew ew! That's just broken, reactors *really* shouldn't do that. I 
> am pretty sure no resumeProducing implementations expect to be called 
> again in response to their own write(), nor should they have to.

Ugh.  Violent agreement.  I imagine that this is due to confusion caused
by the "streaming" flag, but resumeProducing should be called only in
the context of a main-loop iteration.





More information about the Twisted-Python mailing list