[Twisted-Python] hi !!!

Colin Alston colin.alston at thusa.co.za
Tue Sep 15 13:29:05 EDT 2009

On Tue, Sep 15, 2009 at 6:47 PM, Freddy Martinez Garcia <
freddy at cbm.uo.edu.cu> wrote:

> I wrote my problem in the last message an I wasn't clear with that...
> Ok... I'm going again... !!!
> I have a web server... this server was implemented with twisted using
> XMLRPC... when the server start to run, in this moment I did
> "reactor.run()"...
> well, my server is listening by 8080 port, and when one command had become,
> I catch the command, interpret it, and after I need to run another process
> tu execute the command. To execute another process I have to call
> "reactor.spawnProcess(...)" with its parameters, and after I have to say
> again "reactor.run()

No, as was explained you do not have to call reactor.run() again.

Twisted use a global event loop (so to speak), you have one and you start it
once, and when it is running all defereds will execute.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20090915/17bad91b/attachment.htm 

More information about the Twisted-Python mailing list