Perrin Harkins wrote:
> On Wed, 6 Dec 2000, Paul wrote:
> > I was pointed to IPC::Sharable, IPC::Sharelite.
> > I'll look at those.
>
> Take a look at IPC::MM for a shared memory hash implemented in C.  Also,
> File::Cache is sometimes faster than the IPC modules.  I don't think any
> of these solve problems like sharing sockets and file handles though.
>
Is there _any_ solution to sharing sockets? My WebMail server keeps a pool
of IMAP connections open (one per user) but it currently needs to create a
connection for every user for every process that they use. This is awfully
inefficient. I'm planning on creating a little Unix Socket daemon that keeps
a single pool of connections, and make all IMAP connections go through the
daemon. This seems like it should be unnecessary though--isn't there some
way of sharing sockets amongst processes?

PS: I second your suggestion to look at File::Cache--I use it for my session
store and find it excellent. Speed depends on your OS's bufferring, however.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to