Nov. 9, 2004
12:26 p.m.
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.