[Twisted-Python] more complex IBodyProducer?
![](https://secure.gravatar.com/avatar/32d0c39b542f34a656cb6cabd5a2555f.jpg?s=120&d=mm&r=g)
March 18, 2013
7:14 p.m.
has anyone implemented a more complex IBodyProducer than class POSTRequestProducer(): implements(IBodyProducer) def __init__(self, body): self.body = body self.length = len(self.body) def startProducing(self, consumer): consumer.write(self.body) return succeed(None) def pauseProducing(self): pass def stopProducing(self): pass 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.
4345
Age (days ago)
4345
Last active (days ago)
0 comments
1 participants
participants (1)
-
Kevin McIntyre