Re: [Twisted-Python] multiple workers

2010-09-02 Thread exarkun
On 05:26 pm, ruslan.usi...@gmail.com wrote: >Why it is not supported? "Why" it is not supported is that no one has decided to implement and support it. If it's interesting behavior for you, then we would completely welcome you implementing it, and we'll even maintain the support for it once yo

Re: [Twisted-Python] multiple workers

2010-09-02 Thread ruslan usifov
Why it is not supported? I want behaviour like nginx http://nginx.org/, and misunderstand why i can't implemented it throw twisted. Its' so easy. Every process have it's own set sockets, and they doesn't share this sockets between each other. "OnConnect" event happens only once and which process h

Re: [Twisted-Python] multiple workers

2010-09-02 Thread exarkun
On 1 Sep, 10:53 pm, ruslan.usi...@gmail.com wrote: >Hello > >I try to write twisted based daemon that work in multiple workers, like >this: > >from twisted.internet import reactor; >from proxy import FASTCGIServerProxyFactory; >import os; > >reactor.listenUNIX("/tmp/twisted-fcgi.sock", >FASTCGISer

[Twisted-Python] multiple workers

2010-09-01 Thread ruslan usifov
Hello I try to write twisted based daemon that work in multiple workers, like this: from twisted.internet import reactor; from proxy import FASTCGIServerProxyFactory; import os; reactor.listenUNIX("/tmp/twisted-fcgi.sock", FASTCGIServerProxyFactory()); for i in xrange(3): l_pid = os.fork();