So one problem is understanding the reactor. It's only meant to be
run once. Some of your code looks like it's trying to start it more
than once. You only want one started at a time or weird things
happen. I'd start here and make sure you understand the reactor:
http://twistedmatrix.com/proje
I understand how the deferreds can create concurrency, but I still
cant' figure out how to get the process to loop correctly
I changed the code to use multiple deffereds, but I feel I'm missing a
basic architectural design on how to get the process to run in a loop.
Any help would be greatly appr
Hi Maik
I'm not an expert on inlineCallbacks, but I know enough to give something
of an answer.
> I am developing a basic client/server application based on twisted.
> For communication purposes I am using perspective broker. I have
> problems with inlineCallbacks and remotely raised errors:
>
>
On Sun, Jan 4, 2009 at 11:23 PM, Robert Hancock
wrote:
>> How many urls are in url_tuples?
> 4 - 32
>> Is there a reason why you're using just one deferred?
> What is the advantage of using more?
>
Concurrency.
-Drew
___
Twisted-Python mailing list
Tw
Hello,
I am developing a basic client/server application based on twisted.
For communication purposes I am using perspective broker. I have
problems with inlineCallbacks and remotely raised errors:
My client code looks like this (pseudo code):
class Client:
@defer.inlineCallbacks
def login(s
>
>
> > Is there a reason why you're using just one deferred?
> What is the advantage of using more?
>
If you use more with a DeferredList you can have [effectively] parallel page
fetches. It's like spawning threads for each page, but twisted doesn't
actually spawn threads for this I don't think.