<div dir="ltr">has anyone implemented a more complex IBodyProducer than<div><br></div><div><div>class POSTRequestProducer():</div><div> implements(IBodyProducer)</div><div> def __init__(self, body):</div><div> self.body = body</div>
<div> self.length = len(self.body)</div><div> </div><div> def startProducing(self, consumer):</div><div> consumer.write(self.body)</div><div> return succeed(None)</div><div><br></div><div> def pauseProducing(self):</div>
<div> pass</div><div><br></div><div> def stopProducing(self):</div><div> pass</div></div><div><br></div><div><br></div><div style>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.</div>
</div>