Terry MacDonald
terry.macdonald at dsl.pipex.com
Tue Apr 20 00:56:25 EST 2004
Your're right! It appears to be fixed in 3.1.3; take out the session.unlock in the example code and it still works. I had upgraded my mod_python when 3.1.3 was released but omitted to check if this quirk had been fixed/modified, apologies for the mistake. Lets hope for no weird side effects! Thanks Terry On Mon, 2004-04-19 at 05:03, Gregory (Grisha) Trubetskoy wrote: > On Sun, 18 Apr 2004, Terry MacDonald wrote: > > > There is a quirk where the req.session.unlock() needs to be called to > > release the session for the following handler. I thought this would have > > been done in the session code, so could be a bug. The docs state > > themselves that lock and unlock are unlikely to be called by apps, > > however, I have found this not usually the case. > > Starting with 3.1.3 it _is_ done - the session registers a cleanup to > unlock itself. What version of mod_python are you using? > > Here a link to the relevant code in CVS: > > http://cvs.apache.org/viewcvs.cgi/httpd-python/lib/python/mod_python/Session.py?r1=1.9&r2=1.10&diff_format=h > > > P.S. > > Thanks for the example! > > Grisha -- Terry Registered Linux User # 311806 www.taumu.com
|