[Twisted-Python] [SOLVED] ProducerConsumerProxy problem
Itamar Shtull-Trauring
itamar at itamarst.org
Mon May 1 07:13:48 MDT 2006
On Sun, 2006-04-30 at 19:24 +0300, Haris Andrianakis wrote:
> 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 would
> be a good idea.
> proxy = ProducerConsumerProxy(self.client.transport )
> dd = FileSender().beginFileTransfer(self.outgoingFile, proxy)
> dd.addCallback(self.uploadDone)
> dd.addErrback(self.uploadError)
> _______________________________________________
Add the patch to our issue tracker?
--
Itamar Shtull-Trauring
http://itamarst.org
More information about the Twisted-Python
mailing list