[Twisted-Python] R: help needed with flow-control for push protocol

2009-11-05 Thread Pietro Niccoli
> Here's some untested code: > > class SmartEcho(Protocol): > implements(IProducer) > > def pauseProducing(self): > self.transport.pauseProducing() > > def resumeProducing(self): > self.transport.resumeProducing() > > def stopProducing

[Twisted-Python] ProducerConsumerProxy problem

2009-11-04 Thread Pietro Niccoli
Hi, I'm trying to write a simple echo server but with control flow. The program should send back all the data it receives from a client, but if one of the clients that are connected stop accepting the data that is sent back, my program should tell it to stop sending data too, for preventing to run