Hi,<br><br>I'm trying to setup a ProducerConsumerProxy between a<br>protocols.basic.FileSender producer and a TCP Protocol transport.<br>I have the following code:<br><br>fileObj = file('test.txt','r')<br>proxy = protocols.pcp.ProducerConsumerProxy
(self.transport)<br>producer = protocols.basic.FileSender()<br>dd = producer.beginFileTransfer(fileObj, proxy)<br>dd.addCallback(self.uploadDone)<br>dd.addErrback(self.uploadError)<br>proxy.registerProducer(producer, False)
<br><br>The problem is that only 16KB of data are transfered and then the<br>transfer pauses. Also if I use BasicProducerConsumerProxy no data at<br>all gets transfered. I think that the proxy doesn't call resumeProducing() on
<br>the FileSender producer and thats why the transfer seems to halt.<br><br>Any suggestions ?<br><br>