[mod_python] session locking causes hang with mpservlets

Scott Chapman scottie at mischko.com
Sat Mar 26 17:24:13 EST 2005


Graham Dumpleton wrote:

> Try adding:
>
>   self.session.unlock()
>
> just before the internal redirect and see what happens.
>
> I don't believe this should be required as mpservlets is using
> its own internal redirect which actually saves the session before
> doing the real internal redirect.

I'll try that.

> Anyway, this "experiment" might at least help you to understand
> things better.
>
> BTW, I am assuming when you say "make session lock=0", you mean
> setting "use_session" appropriately. Is that correct?

See my code snippet below.  I set use_session in the top of the class.

I mean I changed the servlet.py where it establishes the session to 
include "lock=0" explicitly.

> On 27/03/2005, at 7:29 AM, Scott Chapman wrote:

>> Here's my UberServlet:
>> -------------- snip --------------
>> from mod_python.servlet import Servlet
>>
>> class uberservlet(Servlet):
>>     use_session = True
>



More information about the Mod_python mailing list