[Twisted-Python] Scaling problem

Bob Ippolito bob at redivi.com
Tue Nov 4 14:26:14 MST 2003


On Nov 4, 2003, at 3:20 PM, Glyph Lefkowitz wrote:

> Uwe C. Schroeder wrote:
>
>> Is there a way to have twisted do something like apache or postgres 
>> and split the incoming connection to several processes ? It's not a 
>> web application, I'm solely using pb.
>
> This is possible, although not as easy as I'd like it to be.  In 
> principle, on most UNIX-based OSes, it's possible to listen() and 
> accept() in one process, pass the returned file descriptor to a 
> subprocess and do communication there.  I'd like to make this 
> automatic at some point, but won't have the time to do it for at least 
> another few months.

This is also useful for using privileged sockets (ports < 1024).  For 
example, on OS X in a GUI environment one can start a subprocess with 
root privileges w/ the Authorization framework, open the privileged 
socket, and pass it back to the parent process that does not have root 
privs.

-bob





More information about the Twisted-Python mailing list