[Twisted-web] Reactor in a multithreaded program

Ellers ellers at ellerton.net
Sun May 22 16:12:13 MDT 2005

Hi all

What is the right way to use a reactor in a multithreaded program?

The program I'm writing is a command line program that needs to use the
readline package. Readline blocks so I need to put the reactor (or the
readline call) in a separate thread.

I can start the reactor ok if I set installSignalHandlers=0. But calling
reactor.stop() from the main thread doesn't seem to stop it.

What is the best way?

Thanks :)

More information about the Twisted-web mailing list