Re: Organizing a Quixote/Durus multiprocess application

"Mike Orr" <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
Oh look, another issue.  Where do I set my Durus ClientConnection in a
SCGI app with multiple processes?  Do I have to open a
ClientConnection for every request (ugly)?  Apparently sockets can't
be inherited by child processes, or at least that didn't work with
MySQL ("bad file descriptor").  I could override
scgi.scgi_server.SCGIServer.spawn_child() and set the connections
there, but that seems kludgey.  Do .spawn_child and .reap_children
need a hook method for per-process initialization?

I'm wondering if this will affect session2.store.DurusSessionStore
too.  It currently accepts a live db connection in the constructor,
but that is called before the children are created.  (I set up the
session and then pass it to the Publisher factory.)

-- 
Mike Orr <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.