[hunchentoot-devel] thread safety in session-value

Hans Hübner hans at huebner.org
Thu Sep 4 04:47:38 UTC 2008


On Wed, Sep 3, 2008 at 23:22, Anton Vodonosov <avodonosov at yandex.ru> wrote:
> on Wednesday, September 3, 2008, 11:51:25 PM Hans wrote:
>
>> On Wed, Sep 3, 2008 at 22:32, Anton Vodonosov <avodonosov at yandex.ru> wrote:
>>> Just noticed in the sources that SESSION-VALUE
>>> code does not have WITH-LOCK. IMHO it is necessary
>>> here.
>
>> Can you please be more specific?  Thanks.
>
> I thought that several functions work with the same list
> - SESSION-DATA slot of the session.

I agree, this could be a problem if one session is accessed by
multiple requests, and this is not a completely unlikely scenario
(although I have not been bitten by this).  Do you have a patch?

-Hans



More information about the Tbnl-devel mailing list