Re: [Twisted-Python] Sending large files over network with perspective broker

2010-05-31 Thread Gabriele Lanaro
I've this problem also with consumer/producer over a LineReceiver protocol, should I submit a bug report? 2010/5/24 > On 08:39 am, gabriele.lan...@gmail.com wrote: > >Thank you very much for your explanation! Now I've understood what's > >the > >problem in iterate(). > > > >On these lines I've p

Re: [Twisted-Python] Sending large files over network with perspective broker

2010-05-24 Thread Gabriele Lanaro
rocess each window should redraw correctly 2010/5/24 Glyph Lefkowitz > > On May 23, 2010, at 6:36 PM, Gabriele Lanaro wrote: > > > In which sense it's invalid? I don't know how the gtk reactor works, I > just guessed that the event loop never reaches the gui events. My idea

Re: [Twisted-Python] Sending large files over network with perspective broker

2010-05-23 Thread Gabriele Lanaro
In which sense it's invalid? I don't know how the gtk reactor works, I just guessed that the event loop never reaches the gui events. My idea was to force the processing of these events before spawning another deferred, it's just a workaround, the real problem is the fact that the server and the c

Re: [Twisted-Python] Sending large files over network with perspective broker

2010-05-23 Thread Gabriele Lanaro
ote("send_ chunk", secret, chunk_no, data) d.addCallback(send) 2010/5/23 Gabriele Lanaro > After putting some strategical sleeps seems that the problem is that the > application is the server and the client at once, I think that this > generates a "loop&q

Re: [Twisted-Python] Sending large files over network with perspective broker

2010-05-23 Thread Gabriele Lanaro
After putting some strategical sleeps seems that the problem is that the application is the server and the client at once, I think that this generates a "loop" in the mainloop. 2010/5/23 Gabriele Lanaro > Thank you very much for your responses, the problem seems to appear when in

Re: [Twisted-Python] Sending large files over network with perspective broker

2010-05-23 Thread Gabriele Lanaro
to complete (or something like that). Anyway I think I'll follow your suggestion and I'll end splitting up the upload service and the control/authorization one, since the code can grow up too complex and performance is a requirement. - Gabriele 2010/5/23 David Bolen > Gabriele Lanar

[Twisted-Python] Sending large files over network with perspective broker

2010-05-22 Thread Gabriele Lanaro
I'm writing a gtk application that transfer files in LAN. The application has a server and can spawn different clients (one for each file to send) . The flow between client and server is something like that: client asks pb.Root a FileSender ( that is conceptually a perspective). The client receive

Re: [Twisted-Python] suggestion for a file transfer protocol

2010-05-12 Thread Gabriele Lanaro
lp! - Gabriele 2010/5/11 Konrads Smelkovs > You can do with Pb and Consumer/Producer. Things that use low level > interfaces such as sendfile on linux will be more efficient and you > may want to consider setting up an http server and just handing out > links. > > 2010/5/11, Ga

[Twisted-Python] suggestion for a file transfer protocol

2010-05-11 Thread Gabriele Lanaro
I'm trying to develop a simple application that let communicate two computers in a LAN for transferring files. My idea is that: using dbus/zeroconf each machine can see other's service and can connect with it (I need something without authentication or so) having a lan with 2 machines A asks B i