[Twisted-Python] How do I run a twisted server directly
Itamar Shtull-Trauring
itamar at itamarst.org
Sat May 15 05:08:47 MDT 2004
On Fri, 2004-05-14 at 22:02, Alexander May wrote:
> I cribbed from twistw and did this:
Looks fine.
> Presumably I've committed all sort of horrors writing this code. Please
> feel free to enlighten me to the error of my ways. Also, I'm curious what
> is the function of the following line of code (marked with a *) is which I
> saw in twistw:
> * app.startApplication(internet.TimerService(0.1, lambda:None), 0)
This is so Ctrl-C will be responsive on Windows, otherwise it doesn't
happen until the event loop wakes up - which may be quite a while if no
networking is going on.
More information about the Twisted-Python
mailing list