[Twisted-Python] reactor.stop stops entire twistd
Tsai Li Ming
mailinglist at ltsai.com
Wed Jul 28 04:41:49 EDT 2004
Hi,
I have the following codes:
site = server.Site(Core())
application = service.Application('server')
sc = service.IServiceCollection(application)
q = internet.TCPServer(8081, site)
q.setServiceParent(sc)
# twistd -y server.tac
The core class uses methods that uses getProcessOutput, reactor.run aad
reactor.stop. However, the whole application gets shutdown because of
the reactor.stop.
How do I avoid having my entire application getting stopped?
Thanks,
Liming
More information about the Twisted-Python
mailing list