[elephant-devel] Is it safe to use the same elephant store in two different processes?

Yarek Kowalik yarek.kowalik at gmail.com
Fri Dec 12 03:40:33 UTC 2008


I thought about using one process, but there doesn't seem a way to do this in  Weblocks.

I'll try Ian's sugestion.

Yarek


-----Original Message-----
From: Robert Synnott <rsynnott at gmail.com>
Sent: Thursday, December 11, 2008 5:52 PM
To: Elephant bugs and development <elephant-devel at common-lisp.net>
Subject: Re: [elephant-devel] Is it safe to use the same elephant store in two different processes?

2008/12/11 Yarek Kowalik <yarek.kowalik at gmail.com>:
> I've read section 4.13 in the doc, and it appears that it's possible to use
> two processes.  However, when I launch two processes reading the same
> database, the first process trows errors (see trace below).
>
> Something is messing up the access/confing for the first process.
>
> I was hoping I would not be running into this problem, since I am running
> two processes on purpose: one is running standard HTTP server, the other SSL
> for secure longins, etc.  I'm using BDB as a means of communicating the user
> login state: the user logs in on SSL side, sets up a pass tokens in the
> cookie, redirects to HTTP, and there the server fetches authorisation code
> from DB using the token.
>

If that's all you need it for, you can actually probably run both
servers in the same process.
Rob

_______________________________________________
elephant-devel site list
elephant-devel at common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel





More information about the elephant-devel mailing list