[Twisted-Python] stdio.StandardIO, ServerProtocol and Services.

Phil Mayers p.mayers at imperial.ac.uk
Sat Oct 6 11:04:46 EDT 2007


> The fact that adding reactor.run() (which shouldn't be needed in a
> Service, right?) implies to me that the reactor isn't starting up
> properly without it, and I can't see why.

How are you starting this code? Are you just executing it? If so, don't
do that. Use:

twistd -noy thefile.py

The Twisted application/service code just creates the relevant objects;
the application object still needs to be run. "twistd" will do this for
you.







More information about the Twisted-Python mailing list