Re: Re: Organizing a Quixote/Durus multiprocess application

David Binger <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
On Aug 28, 2006, at 5:41 PM, Damjan wrote:

>> 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)?
>
> You need to open a connection for each process (or thread - since
> ClientConnection is not thread safe).

So, to be explicit, don't open a client connection for every request.
That would waste most of the huge advantage of having a client cache.

Open a client connection for each process/thread
that handles requests.
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.