[Twisted-Python] Question about processes in python

Itamar Turner-Trauring itamar at itamarst.org
Mon Apr 12 23:31:38 EDT 2010

On Mon, 2010-04-12 at 14:23 -0400, Glyph Lefkowitz wrote:

> Still, I wouldn't recommend using the subprocess module in a Twisted
> application, and multiprocessing even less.  'subprocess' uses
> select(), which means that if you are running processes in a server
> handling a large number of connections with a reactor that you've
> selected for that job, you will occasionally notice that
> '.communicate()' will blow up because your file descriptors are too
> big to fit into a select() call.

I'm pretty sure Twisted's process.py uses select() in some cases...
possibly on import though, which would be less of an issue, I forget.

More information about the Twisted-Python mailing list