[Twisted-Python] [SOLVED] ProducerConsumerProxy problem
tlogic at gmail.com
Sun Apr 30 12:24:00 EDT 2006
I found the solution.
The problem was that by default our proxys producer is registered with
streaming = True
which is not what we want.
The following line will register our proxys producer with streaming = False
ProducerConsumerProxy.iAmStreaming = False
The rest is the same.
I think adding an argument to ProducerConsumerProxy.__init__ about streaming
be a good idea.
proxy = ProducerConsumerProxy(self.client.transport)
dd = FileSender().beginFileTransfer(self.outgoingFile, proxy)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python