durusmail: quixote-users: Multi-threaded Quixote apps (was Re: {get,set}_session_manager())
{get,set}_session_manager()
2002-05-15
2002-05-15
Multi-threaded Quixote apps (was Re: {get,set}_session_manager())
2002-05-16
2002-05-16
2002-05-16
2002-05-16
2002-05-16
Multi-threaded Quixote apps (was Re: {get,set}_session_manager())
Greg Ward
2002-05-16
On 15 May 2002, Titus Brown said:
> I would love you for this -- this is the main obstacle for me to changing
> over to a fully threaded implementation!
>
> So, the only "global" would be the publisher, correct?

Not quite: there's still a global request object, which we knew at the
time would cause problems with threaded apps.  It's *sooo* convenient
though.

I suspect the right answer is to have one active request per thread, and
a global dictionary mapping thread IDs to request objects.  This is what
ZODB does with transactions, and it seems to work for them.  That would
be a pretty simple change to publish.py, but since we don't use threads,
we don't have a way to test it.

BTW, what *have* you been doing to accomodate Quixote's
thread-hostility?  Forget about it and cross your fingers?

        Greg


reply