[Twisted-Python] more complex IBodyProducer?

Kevin McIntyre kmcintyre at greenchargenet.com
Mon Mar 18 15:14:06 EDT 2013

has anyone implemented a more complex IBodyProducer than

class POSTRequestProducer():
    def __init__(self, body):
        self.body = body
        self.length = len(self.body)

    def startProducing(self, consumer):
        return succeed(None)

    def pauseProducing(self):

    def stopProducing(self):

I have an upload intensive application, that during periods of poor
connectivity ends up with a lots on zombie http TCP connections.  I'm
thinking maybe that the "pause" is being called and that my request
deferred is in a paused state.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20130318/3635b339/attachment.htm 

More information about the Twisted-Python mailing list